lib/nazrin/data_accessor/mongoid.rb in nazrin-2.6.1 vs lib/nazrin/data_accessor/mongoid.rb in nazrin-2.6.2

- old
+ new

@@ -2,10 +2,10 @@ class DataAccessor class Mongoid < Nazrin::DataAccessor def load_all(ids) documents_table = {} options.each do |k, v| - model = if v.nil? + @model = if v.nil? model.send(k) else model.send(k, v) end end