lib/cistern/collection.rb in cistern-0.12.1 vs lib/cistern/collection.rb in cistern-0.12.2
- old
+ new
@@ -8,9 +8,11 @@
:keep_if, :pop, :shift, :delete_at, :compact
].to_set # :nodoc:
attr_accessor :records, :loaded, :connection
+ alias service connection
+
def self.model(new_model=nil)
if new_model == nil
@model
else
@model = new_model