Method: Cylons::RemoteSchema#initialize
- Defined in:
- lib/cylons/remote_schema.rb
#initialize(klass) ⇒ RemoteSchema
Returns a new instance of RemoteSchema.
5 6 7 8 9 10 |
# File 'lib/cylons/remote_schema.rb', line 5 def initialize(klass) @remote_attributes ||= klass.attribute_names @remote_associations ||= klass.remote_associations @remote_search_scopes ||= [] @remote_klass ||= klass.name.downcase.to_sym end |