blob: 9228d540158c4bd776dc3504dc856f9bea6bd35a (
plain) (
tree)
|
|
module ActiveModel
module Model
def self.included(base)
base.class_eval do
extend ActiveModel::Naming
extend ActiveModel::Translation
include ActiveModel::Validations
include ActiveModel::Conversion
end
end
def initialize(params={})
params.each do |attr, value|
self.send(:"#{attr}=", value)
end if params
end
def persisted?
false
end
end
end
|