Class: Rumbly::Model::ActiveRecord::Application

Inherits:
Rumbly::Model::Application show all
Defined in:
lib/rumbly/model/active_record/application.rb

Overview

This class is an ActiveRecord-specific implementation of the abstract Rumbly::Model::Application class for representing model classes and relationships within the currently loaded environment.

Constant Summary

Constants inherited from Rumbly::Model::Application

Rumbly::Model::Application::ATTRIBUTES

Instance Attribute Summary collapse

Method Summary

Methods inherited from Rumbly::Model::Application

create, #klass_by_name

Methods included from Rumbly::Model::Abstract

#stub_required_methods

Instance Attribute Details

#klassesObject (readonly)

Returns an array of all Rumbly::Model::ActiveRecord::Klass objects for the current loaded ActiveRecord environment.



23
24
25
# File 'lib/rumbly/model/active_record/application.rb', line 23

def klasses
  @klasses
end

#nameObject (readonly)

Returns the name of the current ActiveRecord application.



17
18
19
# File 'lib/rumbly/model/active_record/application.rb', line 17

def name
  @name
end

#relationshipsObject (readonly)

Returns an array of Rumbly::Model::ActiveRecord::Relationship objects for the currently loaded ActiveRecord environment.



34
35
36
# File 'lib/rumbly/model/active_record/application.rb', line 34

def relationships
  @relationships
end