class SmartEnum::Associations::ThroughAssociation
Attributes
association_name[R]
source_option[R]
through_association[R]
Public Class Methods
new(association_name, through_association, source: nil)
click to toggle source
# File lib/smart_enum/associations.rb, line 145 def initialize(association_name, through_association, source: nil) @association_name = association_name @through_association = through_association.to_sym @source_option = source end
Public Instance Methods
association_method()
click to toggle source
# File lib/smart_enum/associations.rb, line 151 def association_method @association_method ||= (source_option || association_name) end