Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Make caller attribute in deprecation methods optional | Alexey Gaziev | 2012-10-30 | 2 | -2/+2 | |
| | | ||||||
* | | Add test for code change introduced in this commit f20032f | Cédric FABIANSKI | 2012-10-29 | 1 | -0/+9 | |
| | | ||||||
* | | Provide a call stack for deprecation warnings where needed. | Nikita Afanasenko | 2012-10-29 | 2 | -7/+6 | |
| | | | | | | | | It's sometimes hard to quickly find where deprecated call was performed, especially in case of migrating between Rails versions. So this is an attempt to improve the call stack part of the warning message by providing caller explicitly. | |||||
* | | fix failing isolated tests | Francesco Rodriguez | 2012-10-26 | 1 | -0/+1 | |
| | | ||||||
* | | fix AM::Serializers titles [ci skip] | Francesco Rodriguez | 2012-10-26 | 2 | -2/+2 | |
| | | ||||||
* | | AM::Serializers::Xml depends on AM::Naming | Francesco Rodriguez | 2012-10-26 | 4 | -4/+4 | |
|/ | ||||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-10-21 | 24 | -36/+62 | |
|\ | | | | | | | | | | | Conflicts: activesupport/lib/active_support/core_ext/hash/slice.rb guides/source/active_support_core_extensions.md | |||||
| * | minor edits in AM documentation [ci skip] | Francesco Rodriguez | 2012-10-21 | 22 | -32/+32 | |
| | | ||||||
| * | include serializers in ActiveModel::Serialization example | Hrvoje Šimić | 2012-10-19 | 1 | -0/+12 | |
| | | ||||||
| * | better examples in ActiveModel readme | Hrvoje Šimić | 2012-10-19 | 1 | -1/+15 | |
| | | ||||||
| * | remove non-breaking spaces [ci skip] | Francesco Rodriguez | 2012-10-18 | 1 | -3/+3 | |
| | | ||||||
* | | add credit to committer of pull request #6569 | Jan Berdajs | 2012-10-18 | 1 | -1/+1 | |
| | | ||||||
* | | active_model/validations requires necessary files to run | Yves Senn | 2012-10-18 | 1 | -0/+1 | |
| | | ||||||
* | | cleanup, replace non-breaking spaces with spaces | Yves Senn | 2012-10-18 | 1 | -5/+5 | |
| | | ||||||
* | | Cleanup trailing whitespaces | dfens | 2012-10-12 | 1 | -1/+1 | |
|/ | ||||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-10-11 | 1 | -1/+1 | |
|\ | | | | | | | | | | | Conflicts: activerecord/lib/active_record/persistence.rb railties/lib/rails/generators/rails/resource_route/resource_route_generator.rb | |||||
| * | Revert "Fix Example in active model attribute methods" | Vijay Dev | 2012-10-11 | 1 | -1/+1 | |
| | | | | | | | | This reverts commit 1c02b988641c201308e6b3de6457128878e47bd5. | |||||
| * | Revert "Fix all examples in comments in active_model attribute methods" | Vijay Dev | 2012-10-11 | 1 | -6/+6 | |
| | | | | | | | | This reverts commit 93b1ca8bd34993f8958219f13c195f5acf8e55f6. | |||||
| * | Use a 1.9 Hash syntax in README files (fixes thanks to @vijaydev) | Robin Dupret | 2012-10-10 | 1 | -1/+1 | |
| | | ||||||
| * | Fix all examples in comments in active_model attribute methods | Nick Rowe | 2012-10-02 | 1 | -6/+6 | |
| | | ||||||
| * | Fix Example in active model attribute methods | Nick Rowe | 2012-10-02 | 1 | -1/+1 | |
| | | ||||||
* | | Use the `flat_map` method. | Rafael Mendonça França | 2012-10-03 | 1 | -2/+2 | |
| | | | | | | | | Thanks to @jeremy to teach me this one. | |||||
* | | Revert "Merge pull request #7826 from sikachu/master-validators-kind" | Rafael Mendonça França | 2012-10-02 | 3 | -32/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 4e9f53f9736544f070e75e516c71137b7eb49a7a, reversing changes made to 6b802cdb4f5b84e1bf49aaeb0e994b3be6028af9. Revert "Don't use tap in this case." This reverts commit 454d820bf0a18fe1db4c55b0145197d70fef1f82. Reason: Is not a good idea to add options to this method since we can do the same thing using method composition. Person.validators_on(:name).select { |v| v.kind == :presence } Also it avoids to change the method again to add more options. | |||||
* | | Don't use tap in this case. | Rafael Mendonça França | 2012-10-02 | 1 | -5/+7 | |
| | | | | | | | | | | The use of tap in this case is very confusing since we are mutating the return value inside the block | |||||
* | | Make `.validators_on` accept `:kind` option | Prem Sichanugrist | 2012-10-02 | 3 | -1/+30 | |
|/ | | | | | This will filter out the validators on a particular attribute based on its kind. | |||||
* | Switch to using include? on validation callbacks | John Foley | 2012-09-23 | 1 | -2/+2 | |
| | ||||||
* | Fix collisions with before and after validation callbacks. | John Foley | 2012-09-23 | 1 | -2/+6 | |
| | | | | | | This commit allows a user to do something like: before_validation :do_stuff, :on => [ :create, :update ] after_validation :do_more, :on => [ :create, :update ] | |||||
* | add :nodoc: to AMo::DeprecatedMassAssignmentSecurity::ClassMethods [ci skip] | Francesco Rodriguez | 2012-09-20 | 1 | -3/+3 | |
| | ||||||
* | change AMo::ForbiddenAttributesProtection#sanitize_for_mass_assignment to ↵ | Francesco Rodriguez | 2012-09-20 | 1 | -7/+8 | |
| | | | | protected | |||||
* | update AMo::ForbiddenAttributesError documentation [ci skip] | Francesco Rodriguez | 2012-09-20 | 1 | -0/+12 | |
| | ||||||
* | add :nodoc: directives to AMo::DeprecatedMassAssignmentSecurity [ci skip] | Francesco Rodriguez | 2012-09-20 | 1 | -3/+3 | |
| | ||||||
* | Update changelogs to add entries about strong_parameters integration | Guillermo Iguaran | 2012-09-19 | 1 | -0/+11 | |
| | ||||||
* | attr_accessible and attr_protected raise an exception pointing to use plugin ↵ | Guillermo Iguaran | 2012-09-16 | 4 | -0/+39 | |
| | | | | or new protection model | |||||
* | Don't use assert_nothing_raised when assert_equal is used | Guillermo Iguaran | 2012-09-16 | 1 | -8/+2 | |
| | ||||||
* | Rename ForbiddenAttributes exception to ForbiddenAttributesError | Guillermo Iguaran | 2012-09-16 | 2 | -3/+3 | |
| | ||||||
* | Change AMo::ForbiddenAttributesProtection tests to use a subclass of Hash ↵ | Guillermo Iguaran | 2012-09-16 | 1 | -8/+18 | |
| | | | | instead of monkey patch permitted? method in regular hashes | |||||
* | Remove MassAssignmentSecurity from ActiveModel | Guillermo Iguaran | 2012-09-16 | 16 | -816/+15 | |
| | | | | This will be moved out to protected_attributes gem | |||||
* | Integrate ActiveModel::ForbiddenAttributesProtection from StrongParameters gem | Guillermo Iguaran | 2012-09-16 | 4 | -0/+54 | |
| | ||||||
* | remove '.rb' from require call | Nihad Abbasov | 2012-09-12 | 1 | -1/+1 | |
| | ||||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-09-09 | 1 | -3/+3 | |
|\ | | | | | | | | | Conflicts: activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | |||||
| * | Added forgotten :message option to ActiveModel validates documentation | Anatoly Makarevich | 2012-09-07 | 1 | -3/+3 | |
| | | ||||||
* | | Bump builder dependencies in Active Model and Action Pack | Carlos Antonio da Silva | 2012-09-07 | 1 | -1/+1 | |
| | | ||||||
* | | Update Active Model xml serialization test to reflect a change in builder | Carlos Antonio da Silva | 2012-09-07 | 2 | -1/+12 | |
|/ | | | | | | | | | | | | | | Due to a change in builder, nil values and empty strings now generates closed tags, so instead of this: <pseudonyms nil=\"true\"></pseudonyms> It generates this: <pseudonyms nil=\"true\"/> Document this change in Rails so that people can track it down easily if necessary. | |||||
* | CHANGELOGs are now per branch | Xavier Noria | 2012-08-28 | 1 | -205/+1 | |
| | | | | | | | | | | Changes in old branches needed to be manually synched in CHANGELOGs of newer ones. This has proven to be brittle, sometimes one just forgets this manual step. With this commit we switch to CHANGELOGs per branch. When a new major version is cut from master, the CHANGELOGs in master start being blank. A link to the CHANGELOG of the previous branch allows anyone interested to follow the history. | |||||
* | Fix method redefined warnings. | kennyj | 2012-08-29 | 2 | -0/+6 | |
| | ||||||
* | Accept a symbol for `:in` option on inclusion and exclusion validators | Gabriel Sobrinho | 2012-08-24 | 6 | -5/+64 | |
| | ||||||
* | Fix ActiveModel tests that depend on run order | Francesco Rodriguez | 2012-08-23 | 1 | -6/+4 | |
| | ||||||
* | Get rid of config.preload_frameworks in favor of config.eager_load_namespaces | José Valim | 2012-08-21 | 2 | -4/+20 | |
| | | | | | | | The new option allows any Ruby namespace to be registered and set up for eager load. We are effectively exposing the structure existing in Rails since v3.0 for all developers in order to make their applications thread-safe and CoW friendly. | |||||
* | Merge pull request #7024 from bogdan/strict_validation_custom_exception | Rafael Mendonça França | 2012-08-16 | 4 | -5/+30 | |
|\ | | | | | | | | | | | | | AM::Validation#validates: custom exception for :strict option Conflicts: activemodel/CHANGELOG.md | |||||
| * | AM::Validation#validates: ability to pass custom exception to `:strict` option | Bogdan Gusiev | 2012-08-06 | 4 | -4/+22 | |
| | |