Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | revise docs [ci skip] | Vijay Dev | 2012-02-01 | 1 | -3/+3 |
| | |||||
* | Generate strict validation error messages with attribute name | Carlos Antonio da Silva | 2012-02-01 | 3 | -11/+19 |
| | |||||
* | Merge pull request #4709 from ask4prasath/refactor_validation_test | Aaron Patterson | 2012-01-27 | 1 | -2/+1 |
|\ | | | | | Removed unwanted intializer and replaced with ruby default collect method | ||||
| * | Removed unwanted intializer and replaced with ruby default collect method | prasath | 2012-01-27 | 1 | -2/+1 |
| | | |||||
* | | fix example code in documentation for has_secure_password | Aaron Beckerman | 2012-01-28 | 1 | -1/+1 |
|/ | |||||
* | Add release date of Rails 3.2.0 to documentation | claudiob | 2012-01-26 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-01-26 | 1 | -1/+1 |
|\ | |||||
| * | Fix translate_error reference for Error#add documentation | Jonathan del Strother | 2012-01-25 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #4644 from ask4prasath/refactor_test | Aaron Patterson | 2012-01-25 | 1 | -4/+3 |
|\ \ | | | | | | | Replaced unwanted method and added to accessor for getter history | ||||
| * | | Removing unwanted method and adding to accessor for getter history | prasath | 2012-01-25 | 1 | -4/+3 |
| | | | |||||
* | | | quote fix ` to ' in the ArgumentError message | Manoj | 2012-01-24 | 1 | -1/+1 |
| |/ |/| | | | | | message quote fix | ||||
* | | remove unused captures | Aaron Patterson | 2012-01-19 | 1 | -2/+2 |
|/ | |||||
* | whitespaces | dreamfall | 2012-01-17 | 1 | -3/+3 |
| | |||||
* | validates method should not change options argument | dreamfall | 2012-01-17 | 2 | -1/+7 |
| | |||||
* | Remove redundant #to_sym | Paweł Kondzior | 2012-01-16 | 1 | -1/+1 |
| | |||||
* | Fix ActiveModel::Errors#dup | Paweł Kondzior | 2012-01-16 | 2 | -0/+13 |
| | | | | | | | | | 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. | ||||
* | Add ActiveModel::Errors#delete, which was not available after move to use ↵ | Piotr Sarnacki | 2012-01-16 | 2 | -0/+12 |
| | | | | delegation | ||||
* | Fix test class name that should read Without | Carlos Antonio da Silva | 2012-01-16 | 1 | -2/+2 |
| | |||||
* | Fix stack level too deep when model does not have attributes method. | Piotr Sarnacki | 2012-01-15 | 2 | -1/+9 |
| | | | | | | | | | | | 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`. | ||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-01-11 | 1 | -1/+1 |
|\ | |||||
| * | Update ConfirmationValidator docs, correct when the validator runs | Alan Harper | 2012-01-05 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #4360 from rafaelfranca/patch-1 | Aaron Patterson | 2012-01-06 | 1 | -2/+2 |
|\ \ | | | | | | | Remove more references to Test::Unit | ||||
| * | | Use ActiveModel::TestCase instead of Test::Unit:TestCase | Rafael Mendonça França | 2012-01-06 | 1 | -2/+2 |
| | | | |||||
* | | | require minitest rather than test/unit | Aaron Patterson | 2012-01-06 | 1 | -1/+1 |
|/ / | |||||
* | | removed unnessary require active_support/core_ext/array_wrap | Karunakar (Ruby) | 2012-01-06 | 1 | -1/+0 |
| | | |||||
* | | Revert "Revert "More 1.9 way"" | Santiago Pastorino | 2012-01-06 | 1 | -4/+2 |
| | | | | | | | | | | Fixed failing tests This reverts commit 8350ce97f2065eed9638c595d3938a573d6fa343. | ||||
* | | Remove Array.wrap call in ActiveModel | Rafael Mendonça França | 2012-01-06 | 7 | -17/+12 |
| | | |||||
* | | Revert "More 1.9 way" | Aaron Patterson | 2012-01-05 | 1 | -2/+4 |
| | | | | | | | | This reverts commit 675094b2757cf90399dadca4489b1036810ae570. | ||||
* | | More 1.9 way | Santiago Pastorino | 2012-01-05 | 1 | -4/+2 |
| | | |||||
* | | use logger.warn for warnings | Aaron Patterson | 2012-01-04 | 1 | -1/+1 |
| | | |||||
* | | push exception message formatting to the exception class | Aaron Patterson | 2012-01-04 | 1 | -1/+4 |
| | | |||||
* | | push target down to the classes that care about it | Aaron Patterson | 2012-01-04 | 1 | -4/+5 |
| | | |||||
* | | just implement the delegate method | Aaron Patterson | 2012-01-04 | 1 | -4/+4 |
| | | |||||
* | | Array.wrap no longer needed | Aaron Patterson | 2012-01-04 | 1 | -3/+2 |
|/ | |||||
* | Fix grammatical error in ↵ | Steve Richert | 2012-01-02 | 1 | -1/+1 |
| | | | | ActiveModel::MassAssignmentSecurity::PermissionSet#deny? NotImplementedError message | ||||
* | Merge pull request #4248 from andrew/2012 | Vijay Dev | 2011-12-31 | 2 | -2/+2 |
|\ | | | | | Updated copyright notices for 2012 | ||||
| * | Updated copyright notices for 2012 | Andrew Nesbitt | 2011-12-31 | 2 | -2/+2 |
| | | |||||
* | | Support configuration on ActiveRecord::Model. | Jon Leighton | 2011-12-28 | 7 | -14/+308 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem: We need to be able to specify configuration in a way that can be inherited to models that include ActiveRecord::Model. So it is no longer sufficient to put 'top level' config on ActiveRecord::Base, but we do want configuration specified on ActiveRecord::Base and descendants to continue to work. So we need something like class_attribute that can be defined on a module but that is inherited when ActiveRecord::Model is included. The solution: added ActiveModel::Configuration module which provides a config_attribute macro. It's a bit specific hence I am not putting this in Active Support or making it a 'public API' at present. | ||||
* | | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2011-12-25 | 1 | -1/+3 |
|\ \ | |||||
| * | | Finished implementation of MIT license linking. | Kristian Freeman | 2011-12-23 | 1 | -1/+3 |
| | | | |||||
* | | | Merge pull request #4172 from nashby/refactor-tokenizer | José Valim | 2011-12-24 | 1 | -4/+2 |
|\ \ \ | | | | | | | | | don't call an extra method if options[:tokenizer] is not present | ||||
| * | | | don't call an extra method if options[:tokenizer] is not present | Vasiliy Ermolovich | 2011-12-24 | 1 | -4/+2 |
| | | | | |||||
* | | | | remove deprecated define_attr_method from ActiveModel::AttributeMethods | Sergey Nartimov | 2011-12-24 | 2 | -72/+0 |
|/ / / | |||||
* | | | use Range#min and Range#max to reduce extra statement | Vasiliy Ermolovich | 2011-12-24 | 1 | -2/+1 |
| | | | |||||
* | | | deprecate String#encoding_aware? and remove its usage | Sergey Nartimov | 2011-12-24 | 1 | -2/+0 |
|/ / | |||||
* | | AM::MAS.attr_protected: rework usage example. | Bogdan Gusiev | 2011-12-23 | 1 | -9/+9 |
| | | |||||
* | | Fixed AM::MasAsSec.attr_protected usage example. | Bogdan Gusiev | 2011-12-22 | 1 | -15/+16 |
| | | | | | | | | | | | | | | | | Problems with current example: * DOESN'T WORK ** attr_protected :last_login, :as => :admin # doesn't make it accessible for admin * Uses ActiveSupport Fixnum extension | ||||
* | | Fix AM::MassAssignementSecurity doc | Bogdan Gusiev | 2011-12-22 | 1 | -1/+1 |
| | | |||||
* | | Changed the require path for logger | Karunakar (Ruby) | 2011-12-21 | 1 | -1/+1 |
| | | |||||
* | | removed deprecated loggers | Karunakar (Ruby) | 2011-12-21 | 1 | -1/+1 |
| | |