Class: SDL::Association Abstract

Inherits:
Field
  • Object
show all
Defined in:
lib/sdl/association.rb

Overview

This class is abstract.

Base class for all association types

Direct Known Subclasses

BelongsTo, HasMany, HasOne

Defined Under Namespace

Classes: BelongsTo, HasMany, HasOne

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from SDL::Field

Instance Method Details

#model_nameName

The name of the associated model

Returns:



10
11
12
# File 'lib/sdl/association.rb', line 10

def model_name
  Name.new(options.fetch(:model_name, name).to_s)
end