Yuki Nishijima
|
10adc2ee90
|
Delegate #model_name method to self.class
|
2014-06-22 19:14:25 -07:00 |
|
Vipul A M
|
29dcf096b0
|
Small typos here and there.
|
2013-03-15 11:55:03 +05:30 |
|
Attila Domokos
|
69b6129fd4
|
Adding the route_key and param_key tests
This way all the tests are testing the same fields
|
2013-01-22 22:13:43 -05:00 |
|
Grant Hutchins
|
bf8d7574bf
|
Remove ActiveModel::Naming#partial_path
It was deprecated in 3.2
|
2012-03-10 18:02:36 -05:00 |
|
Rafael Mendonça França
|
3d4754f131
|
Use ActiveModel::TestCase instead of Test::Unit:TestCase
|
2012-01-06 20:43:08 -03:00 |
|
José Valim
|
7280787a53
|
Improve cache on route_key lookup.
|
2011-12-08 19:53:16 +01:00 |
|
Marc-Andre Lafortune
|
d834755dad
|
ActiveModel::Name#i18n_key: Fix doc and add tests
|
2011-12-05 22:02:53 -05:00 |
|
Arun Agrawal
|
9817a8b7d6
|
Warning removed unused variable
|
2011-11-26 19:30:11 +05:30 |
|
Jakub Kuźma
|
dc39af0a9a
|
make ActiveModel::Name fail gracefully with anonymous classes
|
2011-11-24 15:50:21 +01:00 |
|
José Valim
|
fd86a1b6b0
|
Rely on a public contract between railties instead of accessing railtie methods directly.
|
2011-11-23 19:06:45 +00:00 |
|
Uģis Ozols
|
4015080efd
|
One of the activemodel naming tests wasn't asserting anything.
|
2011-10-07 16:42:44 +03:00 |
|
José Valim
|
dc8773b19f
|
Rename new method to_path to to_partial_path to avoid conflicts with File#to_path and similar.
|
2011-08-01 11:42:00 +02:00 |
|
Grant Hutchins & Peter Jaros
|
bf812074fd
|
Let ActiveModel instances define partial paths.
Deprecate ActiveModel::Name#partial_path. Now you
should call #to_path directly on ActiveModel
instances.
|
2011-07-25 16:05:24 -04:00 |
|
Yves Senn
|
e5429b789d
|
Specify the name to be used for ActiveModel::Name fixes #1168
This patch allows to specify the name of your models independent of the class name.
|
2011-05-20 16:59:09 +02:00 |
|
Ernie Miller
|
21cb1d40b9
|
Test to_model being called in ActiveModel::Naming helpers
Signed-off-by: José Valim <jose.valim@gmail.com>
|
2010-10-04 21:26:42 +02:00 |
|
John Firebaugh
|
75a960ca6e
|
Don't act destructively on ActiveModel::Name#human options hash. [#5366 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
|
2010-09-25 10:59:54 +02:00 |
|
Piotr Sarnacki
|
6e5aed057f
|
Prepared ActiveModel::Naming to handle cases for namespaced isolated engines
|
2010-09-03 22:59:15 +02:00 |
|
José Valim
|
53310614d7
|
Reuse already existing classes for ActiveModel tests.
|
2010-07-21 13:00:56 +02:00 |
|
José Valim
|
e31077c9aa
|
Small clean up in Naming and TTranslation tests.
|
2009-12-23 12:28:02 +01:00 |
|
José Valim
|
e714b499cc
|
Move validator, human_name and human_attribute_name to ActiveModel, remove deprecated error messages and add i18n_scope and lookup_ancestors.
Signed-off-by: Carl Lerche <carllerche@mac.com>
|
2009-10-20 17:52:32 -07:00 |
|
Jeremy Kemper
|
38e056ee2a
|
Use ActiveModel::TestCase base class
|
2009-09-24 22:56:30 -07:00 |
|
Joshua Peek
|
1c4d28ba31
|
Move model naming into ActiveModel
|
2009-06-17 10:37:39 -05:00 |
|