diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-15 16:53:54 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-15 16:53:54 +0200 |
commit | baa4781ac7174e527c2471b4c86ea51c0f65cf6b (patch) | |
tree | ac8fac2379845ce30d9e502ff4511be0488a0dd1 /railties/lib/rails/configuration.rb | |
parent | 7022b58842ec3490d85efc5b947d86a0fd72d0cb (diff) | |
download | rails-baa4781ac7174e527c2471b4c86ea51c0f65cf6b.tar.gz rails-baa4781ac7174e527c2471b4c86ea51c0f65cf6b.tar.bz2 rails-baa4781ac7174e527c2471b4c86ea51c0f65cf6b.zip |
Allow nil and false to be given as configuration values and avoid creating unecessary hashes.
Diffstat (limited to 'railties/lib/rails/configuration.rb')
-rw-r--r-- | railties/lib/rails/configuration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/configuration.rb b/railties/lib/rails/configuration.rb index edbec6ad70..4c68ace779 100644 --- a/railties/lib/rails/configuration.rb +++ b/railties/lib/rails/configuration.rb @@ -298,7 +298,7 @@ module Rails def method_missing(method, *args) sanitized_method = method.to_s.sub(/=$/, '').to_sym - @options[@namespace][sanitized_method] = args.first if args.first + @options[@namespace][sanitized_method] = args.first unless args.empty? if block_given? previous_namespace = @namespace |