Sha256: 47a9d2d0467a49c4f63f46ddd3494e3fb2b8ff0811a9cddadd86b114d7eb6258
Contents?: true
Size: 426 Bytes
Versions: 10
Compression:
Stored size: 426 Bytes
Contents
module Canvas::Models class BaseModel include ::ActiveModel::Validations include ::ActiveModel::Serialization def initialize(attributes = {}) attributes.each do |name, value| send("#{name}=", value) end after_initialize end def after_initialize # this method should be overwritten in subclass end def ==(other) to_json == other.to_json end end end
Version data entries
10 entries across 10 versions & 1 rubygems