lib/recurly/resource/pager.rb in recurly-2.1.8 vs lib/recurly/resource/pager.rb in recurly-2.1.9
- old
+ new
@@ -206,17 +206,17 @@
record.attributes[@parent.class.member_name] = @parent if @parent
@collection << record
end
@collection.freeze
rescue API::NotModified
- defined? @collection and @collection or raise
+ @collection and @collection or raise
end
def method_missing name, *args, &block
scope = resource_class.scopes[name] and return paginate scope
if [].respond_to? name
- load! unless defined? @collection
+ load! unless @collection
return @collection.send name, *args, &block
end
super
end