Skip to content

Commit

Permalink
Remove redundant lazy query kick
Browse files Browse the repository at this point in the history
  • Loading branch information
haines committed Jan 15, 2013
1 parent ffc932d commit 34c6390
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/draper/decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class Decorator
# methods.
def initialize(source, options = {})
options.assert_valid_keys(:context)
source.to_a if source.respond_to?(:to_a) # forces evaluation of a lazy query from AR
@source = source
@context = options.fetch(:context, {})
handle_multiple_decoration(options) if source.instance_of?(self.class)
Expand Down

0 comments on commit 34c6390

Please sign in to comment.