aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/number_helper.rb
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-05-28 23:48:05 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-05-28 23:55:20 -0300
commit400c5fefcf6d3cca734b32fa6a9c93ce338602ea (patch)
treece8b972ca2b9853691e8f1b85f0e8d3a4e6019b0 /activesupport/lib/active_support/number_helper.rb
parentf9cb645dfcb5cc89f59d2f8b58a019486c828c73 (diff)
downloadrails-400c5fefcf6d3cca734b32fa6a9c93ce338602ea.tar.gz
rails-400c5fefcf6d3cca734b32fa6a9c93ce338602ea.tar.bz2
rails-400c5fefcf6d3cca734b32fa6a9c93ce338602ea.zip
Review requires from number helper
Some of these requires are now only necessary in ActiveSupport::NumberHelper. Add hash/keys require due to symbolize_keys usage in number helpers. Also remove some whitespaces. Closes #6414
Diffstat (limited to 'activesupport/lib/active_support/number_helper.rb')
-rw-r--r--activesupport/lib/active_support/number_helper.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/activesupport/lib/active_support/number_helper.rb b/activesupport/lib/active_support/number_helper.rb
index 981ab0cb36..fc97782697 100644
--- a/activesupport/lib/active_support/number_helper.rb
+++ b/activesupport/lib/active_support/number_helper.rb
@@ -498,14 +498,13 @@ module ActiveSupport
formatted_number = self.number_to_rounded(number, options)
decimal_format.gsub(/%n/, formatted_number).gsub(/%u/, unit).strip
end
-
-
+
def self.private_module_and_instance_method(method_name)
private method_name
private_class_method method_name
end
private_class_method :private_module_and_instance_method
-
+
def format_translations(namespace, locale)
defaults_translations(locale).merge(translations_for(namespace, locale))
end
@@ -527,6 +526,6 @@ module ActiveSupport
false
end
private_module_and_instance_method :valid_float?
-
+
end
-end \ No newline at end of file
+end