lib/rasti/db/collection.rb in rasti-db-1.2.0 vs lib/rasti/db/collection.rb in rasti-db-1.3.0
- old
+ new
@@ -14,9 +14,13 @@
def collection_name
@collection_name ||= underscore(demodulize(name)).to_sym
end
+ def collection_fields
+ @collection_fields ||= model.attributes - relations.keys
+ end
+
def primary_key
@primary_key ||= :id
end
def foreign_key
\ No newline at end of file