aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClemens Kofler <clemens@railway.at>2008-09-02 16:05:59 +0200
committerJeremy Kemper <jeremy@bitsweat.net>2008-09-03 00:55:55 +0200
commitd3ccfe414d8f2d5058cdbc3fe7484af12dd3d05b (patch)
treec2f4946194f3a0ba61a54e19aecb99477454d3a9
parent288e947ae1737645985fde76f5382baaff700505 (diff)
downloadrails-d3ccfe414d8f2d5058cdbc3fe7484af12dd3d05b.tar.gz
rails-d3ccfe414d8f2d5058cdbc3fe7484af12dd3d05b.tar.bz2
rails-d3ccfe414d8f2d5058cdbc3fe7484af12dd3d05b.zip
Whitespace.
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
-rw-r--r--activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb b/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb
index 8724a492bf..e6143a274b 100644
--- a/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb
+++ b/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb
@@ -91,14 +91,14 @@ class Class # :nodoc:
def inheritable_attributes
@inheritable_attributes ||= EMPTY_INHERITABLE_ATTRIBUTES
end
-
+
def write_inheritable_attribute(key, value)
if inheritable_attributes.equal?(EMPTY_INHERITABLE_ATTRIBUTES)
@inheritable_attributes = {}
end
inheritable_attributes[key] = value
end
-
+
def write_inheritable_array(key, elements)
write_inheritable_attribute(key, []) if read_inheritable_attribute(key).nil?
write_inheritable_attribute(key, read_inheritable_attribute(key) + elements)
@@ -112,7 +112,7 @@ class Class # :nodoc:
def read_inheritable_attribute(key)
inheritable_attributes[key]
end
-
+
def reset_inheritable_attributes
@inheritable_attributes = EMPTY_INHERITABLE_ATTRIBUTES
end
@@ -123,7 +123,7 @@ class Class # :nodoc:
def inherited_with_inheritable_attributes(child)
inherited_without_inheritable_attributes(child) if respond_to?(:inherited_without_inheritable_attributes)
-
+
if inheritable_attributes.equal?(EMPTY_INHERITABLE_ATTRIBUTES)
new_inheritable_attributes = EMPTY_INHERITABLE_ATTRIBUTES
else
@@ -131,7 +131,7 @@ class Class # :nodoc:
memo.update(key => value.duplicable? ? value.dup : value)
end
end
-
+
child.instance_variable_set('@inheritable_attributes', new_inheritable_attributes)
end