Vijay Dev
efa9a1ff8b
fix typo in readme [ci skip]
2012-04-12 21:49:32 +05:30
Aaron Patterson
96d81e5df4
test against ruby features in order to fix tests on Ruby 2.0
2012-04-12 17:12:52 +05:30
Santiago Pastorino
45d6cd94b3
Bump up to 3.2.3
2012-03-30 19:22:28 -03:00
Santiago Pastorino
5284e650be
Bumping to 3.2.3.rc2
2012-03-29 13:12:44 -03:00
Santiago Pastorino
5f37260918
Bumping to 3.2.3.rc1
2012-03-27 14:07:36 -03:00
Rafael Mendonça França
db743ff459
Fix my name in the CHANGELOG to follow the convention
...
Also add missing entries and use the formating convention
2012-03-09 00:52:19 -03:00
Vijay Dev
263d8424b3
update changelogs for gems without changes too [ci skip]
2012-03-09 03:17:15 +05:30
Carlos Antonio da Silva
e63f04cc0c
Improve docs for attr_accessible|protected related to Hash#except|slice
2012-03-09 00:21:45 +05:30
Aaron Patterson
01b470f526
bumping to 3.2.2
2012-03-01 09:16:28 -08:00
Aaron Patterson
4bcd437f76
updating RAILS_VERSION
2012-02-22 12:03:13 -08:00
Aaron Patterson
0052d90f20
ruby 2.0 makes protected methods return false for respond_to, so pass true as the second param
2012-02-21 10:33:07 -08:00
José Valim
a1b9acb72e
Merge pull request #5049 from fabioyamate/master
...
Fix sanitize_for_mass_assigment when role is nil
2012-02-15 14:24:35 +01:00
Carlos Antonio da Silva
91f8cf2264
Generate strict validation error messages with attribute name
...
Backported from master.
2012-02-01 11:55:07 -02:00
Xavier Noria
8e6ef371c5
fixes whitespace in CHANGELOG entries
2012-01-26 15:46:47 -08:00
Xavier Noria
67b8fbca92
updating RAILS_VERSION
2012-01-26 14:54:02 -08:00
Xavier Noria
97e8d1d819
CHANGELOG revision for v3.2.1
2012-01-26 14:28:48 -08:00
Paul McMahon
75d58fef26
allow requiring of 'active_model/naming'
...
Requiring 'active_model/naming' will raise an uninitialized constant
ActiveSupport::Deprecation exception because the module core extension
doesn't require 'active_support/deprecation'. This require cannot be
added to the core extension because of circular dependency issues.
2012-01-25 11:14:01 +09:00
David Heinemeier Hansson
f36dcaf488
Preparing for 3.2.0 release
2012-01-20 17:44:32 +01:00
Paweł Kondzior
7021184f9c
Fix ActiveModel::Errors#dup
...
Since ActiveModel::Errors instance keeps all error messages as hash
we should duplicate this object as well.
Previously ActiveModel::Errors was a subclass of ActiveSupport::OrderedHash,
which results in different behavior on dup, this may result in regression for
people relying on it.
Because Rails 3.2 stills supports Ruby 1.8.7 in order to properly fix this
regression we need to backport #initialize_dup.
2012-01-16 23:56:55 -08:00
Piotr Sarnacki
90aae070ed
Apparently asssert_empty is not available in 1.8.7
2012-01-16 18:28:01 +01:00
Piotr Sarnacki
3430647434
Add ActiveModel::Errors#delete, which was not available after move to use delegation
2012-01-16 17:24:08 +01:00
Piotr Sarnacki
dee595ce04
Fix stack level too deep when model does not have attributes method.
...
Without that patch when using ActiveModel::AttributeMethods
in a class that does not respond to `attributes` method,
stack level too deep error will be raised on non existing
method. While documentation is clear that you need to define
`attributes` method in order to use AttributeMethods module,
`stack level too deep` is rather obscure and hard to debug,
therefore we should try to not break `method_missing` if
someone forgets about defining `attributes`.
2012-01-15 16:01:05 +01:00
Santiago Pastorino
d268ef2f65
Bump to rc2
2012-01-04 18:59:41 -02:00
José Valim
5d913640bc
Remove i18n dependencies from AP and AMo since they are in AS.
2011-12-20 11:56:22 +01:00
David Heinemeier Hansson
9d6e52b55e
Party like its R-C-UNO!
2011-12-19 18:34:57 -06:00
Arun Agrawal
4fac64b1cc
Fixed test "ArgumentError: wrong number of arguments(1 for 0)"
2011-12-17 16:49:01 +05:30
Antonio Roberto
66e747b461
Fixed bug when error message is an empty string.
2011-12-16 17:17:14 -02:00
José Valim
7280787a53
Improve cache on route_key lookup.
2011-12-08 19:53:16 +01:00
José Valim
f0f0e59c10
Ensure length validator also works on 1.8.7.
2011-12-06 14:13:44 +01:00
José Valim
81fec5dfc4
Merge pull request #3872 from marcandre/i18n_key
...
ActiveModel::Name#i18n_key: Fix doc and add tests
2011-12-06 00:41:43 -08:00
José Valim
1ee832b2d8
Merge pull request #3873 from iangreenleaf/no_default_tokenizer
...
Don't tokenize string when counting characters
2011-12-06 00:41:05 -08:00
Marc-Andre Lafortune
d834755dad
ActiveModel::Name#i18n_key: Fix doc and add tests
2011-12-05 22:02:53 -05:00
José Valim
d4964b3386
Namespaced attribute lookup now works as 'model/association.attribute'.
2011-12-05 15:39:41 +01:00
José Valim
2985151000
Merge pull request #3859 from kuroda/human_attribute_name
...
Fix human_attribute_name to handle names with dots
2011-12-05 06:09:33 -08:00
Tsutomu Kuroda
dff19f7be2
Fix human_attribute_name to handle names with dots
...
Nested I18n namespace lookup under activerecord.models is deprecated now (c19bd4f ).
But when a model uses accepts_nested_attributes_for, its Errors object can have
an attribute name with "addresses.street" style. In this case, the dots should be
substituted with slashes so that we can provide the translation under the
"activemodel.attributes.person.addresses/street" key.
2011-12-05 22:57:47 +09:00
Ian Young
5ff71ac9f8
Don't tokenize string when counting characters
2011-12-04 23:20:54 -08:00
Alexey Vakhov
814a4c3160
Fix argument error message for length validation
2011-12-01 09:12:16 +04:00
Vijay Dev
88daf08258
Merge branch 'master' of github.com:lifo/docrails
2011-11-30 23:32:01 +05:30
José Valim
5b2eb64ceb
Revert "Implement ArraySerializer and move old serialization API to a new namespace."
...
This reverts commit 8896b4fdc8 .
Conflicts:
activemodel/lib/active_model.rb
activemodel/lib/active_model/serializable.rb
activemodel/lib/active_model/serializer.rb
activemodel/test/cases/serializer_test.rb
2011-11-30 18:48:17 +01:00
lest
6ce924fa9f
fix method redefined warning in activemodel
2011-11-30 18:57:17 +03:00
José Valim
38ab982cff
Log 'Filter chain halted as CALLBACKNAME rendered or redirected' every time a before callback halts.
2011-11-30 09:53:09 +01:00
Jon Leighton
8df787d428
Deprecated define_attr_method in ActiveModel::AttributeMethods
...
This only existed to support methods like `set_table_name` in Active
Record, which are themselves being deprecated.
2011-11-29 20:13:37 +00:00
Alexey Vakhov
448df2d100
Cosmetic fixes in AM validatations docs
2011-11-27 10:23:40 +04:00
Arun Agrawal
9817a8b7d6
Warning removed unused variable
2011-11-26 19:30:11 +05:30
Vijay Dev
1d89540686
Merge branch 'master' of github.com:lifo/docrails
2011-11-26 19:14:39 +05:30
José Valim
0a4035b12a
Revert the serializers API as other alternatives are now also under discussion
2011-11-25 19:29:39 +00:00
José Valim
fcacc6986a
Merge branch 'serializers'
...
This implements the ActiveModel::Serializer object. Includes code, tests, generators and guides.
From José and Yehuda with love.
Conflicts:
railties/CHANGELOG.md
2011-11-25 09:59:35 +00:00
José Valim
696d01f7f4
Add docs to serializers. Update CHANGELOGs.
2011-11-25 09:49:54 +00:00
Jakub Kuźma
dc39af0a9a
make ActiveModel::Name fail gracefully with anonymous classes
2011-11-24 15:50:21 +01:00
José Valim
28bcda4098
Rename UserSerializer to DefaultUserSerializer in tests.
2011-11-23 23:53:20 +00:00