lib/zermelo/record.rb in zermelo-1.3.0 vs lib/zermelo/record.rb in zermelo-1.4.0

- old
+ new

@@ -10,13 +10,11 @@ require 'zermelo/records/instance_methods' require 'zermelo/records/class_methods' require 'zermelo/records/type_validator' module Zermelo - module Record - extend ActiveSupport::Concern include Zermelo::Records::InstMethods included do @@ -29,15 +27,15 @@ extend Zermelo::Records::Attributes # include ActiveModel::MassAssignmentSecurity - @lock = Monitor.new - extend Zermelo::Records::ClassMethods extend Zermelo::Associations::ClassMethods + @lock = Monitor.new + attr_accessor :attributes define_model_callbacks :create, :update, :destroy attribute_method_suffix "=" # attr_writers @@ -45,9 +43,7 @@ validates_with Zermelo::Records::TypeValidator define_attributes :id => :string end - end - end \ No newline at end of file