aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/configurable.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-09-211-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: actionmailer/lib/action_mailer/base.rb activesupport/lib/active_support/configurable.rb activesupport/lib/active_support/core_ext/module/deprecation.rb guides/source/action_controller_overview.md guides/source/active_support_core_extensions.md guides/source/ajax_on_rails.textile guides/source/association_basics.textile guides/source/upgrading_ruby_on_rails.md While resolving conflicts, I have chosen to ignore changes done in docrails at some places - these will be most likely 1.9 hash syntax changes.
| * update AS docs [ci skip]Francesco Rodriguez2012-09-171-7/+7
| |
* | set up config_accessor with a default value by blockLarry Lv2012-09-171-6/+18
|/ | | | | | | | | | | | | | | | | | * 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.
* correct line numbers for reader and writer methodsbenolee2012-06-241-6/+6
|
* add instance_accessor option to ActiveSupport::Configurable#config_accessorFrancesco Rodriguez2012-06-051-5/+52
| | | | | | | | | | 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.
* remove unused requiresSergey Nartimov2012-01-181-2/+0
|
* Fix configurable cristalization and tests.José Valim2011-06-291-2/+2
|
* Move variables to underscore format, update protected instance variables list.José Valim2011-05-061-6/+9
|
* removes Examples headers introduced in 9b96de6Xavier Noria2011-03-061-10/+4
| | | | | | | Example headers are discouraged in the API guidelines. Code just flows with the text. They may be good in places where there's a lot of stuff and structure may add clarity
* Some style changessuchasurge2011-03-061-0/+6
|
* Make ActiveSupport::Configurable work with modulesOriol Gual and Josep M. Bach2011-02-281-1/+1
| | | | | | [#6486 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Add comment for config_accessor methodNeeraj Singh2010-11-301-0/+12
|
* Call it compile_methods! and do the same on AM.José Valim2010-09-271-3/+3
|
* Try to use Hash's native #[] for speed.thedarkone2010-09-271-1/+1
|
* Make InheritableOptions's constructor more flexible.thedarkone2010-09-271-1/+1
|
* Compile ActionController::Base.config's methods to avoid method_missing ↵thedarkone2010-09-271-2/+22
| | | | overhead.
* Revert "Add example label to activesupport/configurable"Xavier Noria2010-08-151-2/+0
| | | | | | This reverts commit f480b2cea69247239f6fc2ad171b231595cc08c6. Reason: API guidelines discourage this, see http://edgeguides.rubyonrails.org/api_documentation_guidelines.html#example-code
* Revert "Add example label to active_support/configurable"Xavier Noria2010-08-151-0/+1
| | | | | | This reverts commit 693f770afe0e14fc1b4658ef51910d993e67dd07. Reason: to be able to revert f480b2cea69247239f6fc2ad171b231595cc08c6
* Add example label to active_support/configurableJosep M. Bach2010-08-151-1/+0
|
* Add example label to activesupport/configurableJosep M. Bach2010-08-151-0/+2
|
* Documented active_support/configurableJosep M. Bach2010-08-151-1/+20
|
* Ensure @config is not a reserved instance variable in controllers. [#5342 ↵José Valim2010-08-111-2/+2
| | | | state:resolved]
* Clean up the config object in ActionPack. Create config_accessor which just ↵José Valim2010-04-221-18/+19
| | | | delegates to the config object, reducing the number of deprecations and add specific tests.
* Start adding configuration to ActionView instead of using constants.Yehuda Katz2009-10-141-0/+35
By using config rather than hardcoded constants, we can evolve the configuration system over time (we'd just need to update the config method with more robust capabilities and all consumers would get the capabilities with no code changes)