Sha256: e4fad3af0d208c8e0f30c1399ef0c4651674a078aa0085c0d61b3dfee298f674
Contents?: true
Size: 651 Bytes
Versions: 3
Compression:
Stored size: 651 Bytes
Contents
# Copy ActiveModel::Model from Rails 4.x here module MultiNotifier class Adapter 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.public_send("#{attr}=", value) end if params super() end def persisted? false end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
multi_notifier-0.3.0 | lib/multi_notifier/model.rb |
multi_notifier-0.2.0 | lib/multi_notifier/model.rb |
multi_notifier-0.0.1 | lib/multi_notifier/model.rb |