lib/mongoid/orderable/generators/position.rb in mongoid_orderable-6.0.4 vs lib/mongoid/orderable/generators/position.rb in mongoid_orderable-6.0.5
- old
+ new
@@ -6,19 +6,19 @@
class Position < Base
def generate(field_name)
klass.class_eval <<~KLASS, __FILE__, __LINE__ + 1
def orderable_position(field = nil)
field ||= default_orderable_field
- send "orderable_\#{field}_position"
+ send("orderable_\#{field}_position")
end
KLASS
generate_method("orderable_#{field_name}_position") do
- send field_name
+ send(field_name)
end
generate_method("orderable_#{field_name}_position=") do |value|
- send "#{field_name}=", value
+ send("#{field_name}=", value)
end
end
end
end
end