Module: CouchbaseOrm::ActiveRecordCompat::ClassMethods
- Defined in:
- lib/couchbase-orm/active_record_compat.rb
Instance Method Summary collapse
- #_reflect_on_association(_attribute) ⇒ Object
- #abstract_class? ⇒ Boolean
- #attribute_names ⇒ Object
- #base_class? ⇒ Boolean
-
#column_names ⇒ Object
can’t be an alias for now.
- #connected? ⇒ Boolean
- #primary_key ⇒ Object
- #table_exists? ⇒ Boolean
- #type_for_attribute(attribute) ⇒ Object
Instance Method Details
#_reflect_on_association(_attribute) ⇒ Object
40 41 42 |
# File 'lib/couchbase-orm/active_record_compat.rb', line 40 def _reflect_on_association(_attribute) false end |
#abstract_class? ⇒ Boolean
28 29 30 |
# File 'lib/couchbase-orm/active_record_compat.rb', line 28 def abstract_class? false end |
#attribute_names ⇒ Object
49 50 51 |
# File 'lib/couchbase-orm/active_record_compat.rb', line 49 def attribute_names attribute_types.keys end |
#base_class? ⇒ Boolean
20 21 22 |
# File 'lib/couchbase-orm/active_record_compat.rb', line 20 def base_class? true end |
#column_names ⇒ Object
can’t be an alias for now
24 25 26 |
# File 'lib/couchbase-orm/active_record_compat.rb', line 24 def column_names # can't be an alias for now attribute_names end |
#connected? ⇒ Boolean
32 33 34 |
# File 'lib/couchbase-orm/active_record_compat.rb', line 32 def connected? true end |
#primary_key ⇒ Object
16 17 18 |
# File 'lib/couchbase-orm/active_record_compat.rb', line 16 def primary_key 'id' end |
#table_exists? ⇒ Boolean
36 37 38 |
# File 'lib/couchbase-orm/active_record_compat.rb', line 36 def table_exists? true end |
#type_for_attribute(attribute) ⇒ Object
44 45 46 |
# File 'lib/couchbase-orm/active_record_compat.rb', line 44 def type_for_attribute(attribute) attribute_types[attribute] end |