aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/configurable_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* improve error message when include assertions failMichael Grosser2016-09-161-2/+2
| | | | | | assert [1, 3].includes?(2) fails with unhelpful "Asserting failed" message assert_includes [1, 3], 2 fails with "Expected [1, 3] to include 2" which makes it easier to debug and more obvious what went wrong
* applies new string literal convention in activesupport/testXavier Noria2016-08-061-3/+3
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Privatize config_accessor as with attr_accessorAkira Matsuda2015-02-061-0/+8
|
* 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.