We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ca45207 + 5277d81 commit e9550f9Copy full SHA for e9550f9
1 file changed
lib/harvesting/models/base.rb
@@ -108,7 +108,7 @@ def self.attributed(*attribute_names)
108
def self.modeled(opts = {})
109
opts.each do |attribute_name, model|
110
attribute_name_string = attribute_name.to_s
111
- Harvesting::Models::Base.send :define_method, attribute_name_string do
+ define_method(attribute_name_string) do
112
@models[attribute_name_string] ||= model.new(@attributes[attribute_name_string] || {}, harvest_client: harvest_client)
113
end
114
0 commit comments