Module: AdjustableSchema

Extended by:
ActiveRecord::Builder
Defined in:
lib/adjustable_schema.rb,
lib/adjustable_schema/config.rb,
lib/adjustable_schema/engine.rb,
lib/adjustable_schema/authors.rb,
lib/adjustable_schema/version.rb,
lib/adjustable_schema/active_record.rb,
app/models/adjustable_schema/relationship.rb,
lib/adjustable_schema/active_record/builder.rb,
app/models/concerns/adjustable_schema/actors.rb,
app/models/adjustable_schema/relationship/role.rb,
app/models/adjustable_schema/application_record.rb,
lib/adjustable_schema/active_record/association.rb,
lib/adjustable_schema/active_record/association/naming.rb,
lib/adjustable_schema/active_record/association/scopes.rb,
lib/adjustable_schema/active_record/association/roleless.rb,
lib/adjustable_schema/active_record/association/hierarchy.rb,
lib/adjustable_schema/active_record/association/referenced.rb,
app/models/concerns/adjustable_schema/active_record/associations.rb,
app/models/concerns/adjustable_schema/active_record/relationships.rb,
app/models/concerns/adjustable_schema/active_record/relationships/builder.rb

Overview

:nodoc:

Defined Under Namespace

Modules: ActiveRecord, Config Classes: ApplicationRecord, Engine, Relationship

Constant Summary collapse

AUTHORS =

rubocop:disable Style/MutableConstant

[ # rubocop:disable Style/MutableConstant
    Gem::Author.new(
        name:   'Alexander Senko',
        email:  '[email protected]',
        github: 'Alexander-Senko',
    ),
]
VERSION =
'0.11.1'

Class Method Summary collapse

Methods included from ActiveRecord::Builder

relationship!, role!

Class Method Details

.available?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/adjustable_schema.rb', line 16

def available?
  Relationship.table_exists?
end

.deprecatorObject

:nodoc:



20
21
22
# File 'lib/adjustable_schema.rb', line 20

def deprecator # :nodoc:
  @deprecator ||= ActiveSupport::Deprecation.new
end