aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/configurable_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Make sure multiline string is not accepted by the regexpRafael Mendonça França2013-12-191-1/+9
|
* Fixed configurable.rb regular expression name checkHincu Petru2013-12-191-0/+6
|
* minor grammar fixZoltan Kiss2012-12-241-1/+1
|
* set up config_accessor with a default value by blockLarry Lv2012-09-171-2/+14
| | | | | | | | | | | | | | | | | | * ActiveSupport::Configurable should allow config_accessor to take default value by block, just like cattr_accessor. class User include ActiveSupport::Configurable config_accessor :hair_colors do [:brown, :black, :blonde, :red] end end User.hair_colors # => [:brown, :black, :blonde, :red] * remove trailing whitespaces in configurable.rb and its test file. * Update ActiveSupport CHANGELOG.
* add instance_accessor option to ActiveSupport::Configurable#config_accessorFrancesco Rodriguez2012-06-051-4/+18
| | | | | | | | | | Changes: * Add `instance_accessor` option to opt out of the instance writer and instance reader methods. * Raises a NameError if the name of the attribute is not valid. * Update documentation and tests. * Add CHANGELOG entry in activesupport.
* Fix configurable cristalization and tests.José Valim2011-06-291-6/+16
|
* Move variables to underscore format, update protected instance variables list.José Valim2011-05-061-0/+7
|
* Make ActiveSupport::Configurable work with modulesOriol Gual and Josep M. Bach2011-02-281-1/+7
| | | | | | [#6486 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Call it compile_methods! and do the same on AM.José Valim2010-09-271-1/+1
|
* Compile ActionController::Base.config's methods to avoid method_missing ↵thedarkone2010-09-271-0/+18
| | | | overhead.
* Clean up the config object in ActionPack. Create config_accessor which just ↵José Valim2010-04-221-0/+42
delegates to the config object, reducing the number of deprecations and add specific tests.