lib/supermodel/base.rb in supermodel-0.0.1 vs lib/supermodel/base.rb in supermodel-0.0.2
- old
+ new
@@ -152,10 +152,14 @@
def update_attributes(attributes)
load(attributes) && save
end
+ def has_attribute?(name)
+ @attributes.has_key?(name)
+ end
+
alias_method :respond_to_without_attributes?, :respond_to?
def respond_to?(method, include_priv = false)
method_name = method.to_s
if attributes.nil?
@@ -223,8 +227,8 @@
end
class Base
extend ActiveModel::Naming
include ActiveModel::Conversion
- include Observing, Validations, Scriber
+ include Observing, Validations, Callbacks
end
end
\ No newline at end of file