Class: Refinery::Contacts::TableLessModel

Inherits:
Object
  • Object
show all
Extended by:
ActiveModel::Naming, ActiveModel::Translation
Includes:
ActiveModel::Conversion, ActiveModel::Validations
Defined in:
app/models/refinery/contacts/table_less_model.rb

Direct Known Subclasses

MailMessage

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ TableLessModel

Returns a new instance of TableLessModel.



11
12
13
14
15
# File 'app/models/refinery/contacts/table_less_model.rb', line 11

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

Instance Method Details

#persisted?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'app/models/refinery/contacts/table_less_model.rb', line 17

def persisted?
  false
end