Sha256: 13258fa53f4d9e02c3b4da78c6102e7193f92265ff4938c60fd2c1737abc9d09
Contents?: true
Size: 642 Bytes
Versions: 1
Compression:
Stored size: 642 Bytes
Contents
# frozen_string_literal: true module Formtastic module Inputs module Base module Associations include Formtastic::Helpers::Reflection # :belongs_to, etc def association @association ||= association_macro_for_method(method) end def reflection @reflection ||= reflection_for(method) end def belongs_to? association == :belongs_to end def has_many? association == :has_many end def association_primary_key association_primary_key_for_method(method) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
formtastic-5.0.0 | lib/formtastic/inputs/base/associations.rb |