Sha256: 00057bf6dcd622f136bebdfeb5687c975feb80f6bc61e41a17fc1baa2e6516d1

Contents?: true

Size: 327 Bytes

Versions: 8

Compression:

Stored size: 327 Bytes

Contents

class Tableless
  include ActiveModel::Validations
  include ActiveModel::Conversion
  extend ActiveModel::Naming

  attr_accessor :title

  validates :title, presence: true

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

  def persisted?
    false
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sal-engine-0.2.0 spec/dummy/app/models/tableless.rb
sal-engine-0.1.0 spec/dummy/app/models/tableless.rb
sal-engine-0.0.6 spec/dummy/app/models/tableless.rb
sal-engine-0.0.5 spec/dummy/app/models/tableless.rb
sal-engine-0.0.4 spec/dummy/app/models/tableless.rb
sal-engine-0.0.3 spec/dummy/app/models/tableless.rb
sal-engine-0.0.2 spec/dummy/app/models/tableless.rb
sal-engine-0.0.1 spec/dummy/app/models/tableless.rb