Cleanup whitespace introduced in 8377646 and f4f6888
This commit is contained in:
parent
8377646d68
commit
89630a7c2c
@ -1116,7 +1116,6 @@ def update_attribute(name, value)
|
||||
self.save
|
||||
end
|
||||
|
||||
|
||||
# Updates this resource with all the attributes from the passed-in Hash
|
||||
# and requests that the record be saved.
|
||||
#
|
||||
@ -1130,6 +1129,7 @@ def update_attribute(name, value)
|
||||
def update_attributes(attributes)
|
||||
load(attributes) && save
|
||||
end
|
||||
|
||||
# For checking <tt>respond_to?</tt> without searching the attributes (which is faster).
|
||||
alias_method :respond_to_without_attributes?, :respond_to?
|
||||
|
||||
@ -1150,7 +1150,6 @@ def respond_to?(method, include_priv = false)
|
||||
super
|
||||
end
|
||||
|
||||
|
||||
protected
|
||||
def connection(refresh = false)
|
||||
self.class.connection(refresh)
|
||||
|
@ -15,7 +15,6 @@ class Comment < ActiveResource::Base
|
||||
|
||||
module Deeply
|
||||
module Nested
|
||||
|
||||
class Note < ActiveResource::Base
|
||||
self.site = "http://37s.sunrise.i:3000"
|
||||
end
|
||||
@ -25,16 +24,12 @@ class Comment < ActiveResource::Base
|
||||
end
|
||||
|
||||
module TestDifferentLevels
|
||||
|
||||
class Note < ActiveResource::Base
|
||||
self.site = "http://37s.sunrise.i:3000"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@ -171,6 +166,4 @@ def test_nested_collections_in_different_levels_of_namespaces
|
||||
n = Highrise::Deeply::Nested::TestDifferentLevels::Note.new(:comments => [{ :name => "1" }])
|
||||
assert_kind_of Highrise::Deeply::Nested::Comment, n.comments.first
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user