We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49f2fcf commit ff54bdcCopy full SHA for ff54bdc
lib/liquid-rails/drops/drop.rb
@@ -39,13 +39,12 @@ def self.drop_class_for(resource)
39
end
40
41
# Create a drop instance when it cannot be inferred.
42
- def self.dropify(wealth, options={})
+ def self.dropify(resource, options={})
43
drop_class = if options[:class_name]
44
options[:class_name].constantize
45
else
46
- drop_class_for(wealth)
+ drop_class_for(resource)
47
48
- resource = options[:scope].nil? ? wealth : eval("wealth.#{options[:scope]}")
49
drop_class.new(resource, options.except(:class_name))
50
51
0 commit comments