Sha256: 962f51586adfef577355e5a79fda20f8eafe8fe6b3156cafcf315f3d62521818

Contents?: true

Size: 393 Bytes

Versions: 1

Compression:

Stored size: 393 Bytes

Contents

module Ubiquitously
  class Base
    include ActiveModel::Validations
    extend ActiveModel::Callbacks
    include ActiveModel::Serialization
    include SubclassableCallbacks
    
    def apply(attributes)
      attributes.each do |key, value|
        self.send("#{key.to_s}=", value) if self.respond_to?(key)
      end
    end
    
    def debug?
      Ubiquitously.debug?
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ubiquitously-0.1.0 lib/ubiquitously/models/base.rb