module Libis::Workflow::Mongoid::Dynamic::ClassMethods
Public Instance Methods
each(&block)
click to toggle source
# File lib/libis/workflow/mongoid/dynamic.rb, line 15 def each(&block) self.attributes.reject { |k,_| k == '_id' }.each(&block) end
has_key?(key)
click to toggle source
# File lib/libis/workflow/mongoid/dynamic.rb, line 11 def has_key?(key) self.attributes.has_key?(key.to_s) || self.attributes.has_key?(key.to_sym) end