Class: Guise::HasGuisesBuilder Private

Inherits:
Object
  • Object
show all
Defined in:
lib/guise/builders.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ HasGuisesBuilder

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of HasGuisesBuilder.



6
7
8
# File 'lib/guise/builders.rb', line 6

def initialize(options)
  @options = options
end

Instance Method Details

#build!Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/guise/builders.rb', line 10

def build!
  set_guise_options!
  define_association!
  define_scopes!

  if @options.association_options != DEFAULT_ASSOCIATION_NAME
    define_association_aliases!
  end

  define_introspection_aliases!
end