lib/ampere/model.rb in ampere-1.1.0 vs lib/ampere/model.rb in ampere-1.1.1
- old
+ new
@@ -3,9 +3,11 @@
def self.included(base)
base.extend(ClassMethods)
base.class_eval do
+ include(::ActiveModel::Validations)
+
attr_reader :id
attr_accessor :fields
attr_accessor :field_defaults
attr_accessor :indices