lib/formtastic/helpers/reflection.rb in formtastic-2.0.1 vs lib/formtastic/helpers/reflection.rb in formtastic-2.0.2
- old
+ new
@@ -6,10 +6,10 @@
# reflection object.
def reflection_for(method) #:nodoc:
if @object.class.respond_to?(:reflect_on_association)
@object.class.reflect_on_association(method)
elsif @object.class.respond_to?(:associations) # MongoMapper uses the 'associations(method)' instead
- @object.class.associations(method)
+ @object.class.associations[method]
end
end
def association_macro_for_method(method) #:nodoc:
reflection = reflection_for(method)
\ No newline at end of file