class SDL::Association::HasMany
Indicates a one-to-many connection with another {Model}
Public Instance Methods
model_name()
click to toggle source
The name of the associated model @return [Name]
# File lib/sdl/association.rb, line 34 def model_name model_name = options.fetch(:model_name) do ActiveSupport::Inflector.singularize(name.to_s) end Name.new(model_name.to_s) end
type()
click to toggle source
The type of field @return [Symbol]
# File lib/sdl/association.rb, line 28 def type :has_many end