Sha256: 86b50c106f4c3caa84c3239c934264a94c4d816297fd7ef22a825b5ac8783889

Contents?: true

Size: 410 Bytes

Versions: 4

Compression:

Stored size: 410 Bytes

Contents

module Refinery
  module Contacts
    class TableLessModel
      include ActiveModel::Validations
      include ActiveModel::Conversion
      extend ActiveModel::Naming
      extend ActiveModel::Translation



      def initialize(attributes = {})
        attributes.each do |name, value|
          send("#{name}=", value)
        end
      end

      def persisted?
        false
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
refinerycms-contacts-0.2.0 app/models/refinery/contacts/table_less_model.rb
refinerycms-contacts-0.1.2 app/models/refinery/contacts/table_less_model.rb
refinerycms-contacts-0.1.1 app/models/refinery/contacts/table_less_model.rb
refinerycms-contacts-0.1.0 app/models/refinery/contacts/table_less_model.rb