lib/entity_status.rb in entity_status-0.1.0 vs lib/entity_status.rb in entity_status-0.1.1
- old
+ new
@@ -39,10 +39,10 @@
end
end
def set_default_scope(column_name,destroyed_status)
- self.default_scope where.not(column_name.to_sym => destroyed_status)
+ self.default_scope {where.not(column_name.to_sym => destroyed_status)}
# klass = self.to_s
# metaclass.instance_eval do
# default_scope where.not(column_name.to_sym => destroyed_status)
# end
end
\ No newline at end of file