class Polymorpheus::InterfaceBuilder::Association
Attributes
key[R]
name[R]
options[R]
Public Class Methods
new(name, options)
click to toggle source
# File lib/polymorpheus/interface_builder/association.rb, line 11 def initialize(name, options) @name, @options = name.to_s.downcase, options @key = "#{@name}_id" end
Public Instance Methods
association_class()
click to toggle source
The association class may not be loaded at the time this object is initialized, so we can't set it via an accessor in the initializer.
# File lib/polymorpheus/interface_builder/association.rb, line 18 def association_class @association_class ||= name.classify.constantize end