lib/engine2/core.rb in engine2-1.0.6 vs lib/engine2/core.rb in engine2-1.0.7
- old
+ new
@@ -139,10 +139,14 @@
end
def q col
col.qualify self
end
+
+ def loc
+ Engine2::LOCS[self]
+ end
end
module Faye
class WebSocket
module API
@@ -196,9 +200,13 @@
Sequel::Database::extension :schema_caching
module E2Model
module InstanceMethods
attr_accessor :skip_save_refresh, :validate_fields
+
+ def key? key
+ @values.key? key
+ end
def has_primary_key?
pk = self.pk
pk.is_a?(Array) ? !pk.all?{|k|k.nil?} : !pk.nil?
end