module Formtastic::Inputs::Base::Associations
Public Instance Methods
association()
click to toggle source
:belongs_to, etc
# File lib/formtastic/inputs/base/associations.rb, line 8 def association @association ||= association_macro_for_method(method) end
association_primary_key()
click to toggle source
# File lib/formtastic/inputs/base/associations.rb, line 24 def association_primary_key association_primary_key_for_method(method) end
belongs_to?()
click to toggle source
# File lib/formtastic/inputs/base/associations.rb, line 16 def belongs_to? association == :belongs_to end
has_many?()
click to toggle source
# File lib/formtastic/inputs/base/associations.rb, line 20 def has_many? association == :has_many end
reflection()
click to toggle source
# File lib/formtastic/inputs/base/associations.rb, line 12 def reflection @reflection ||= reflection_for(method) end