Sha256: 63191be07ab68c0c3c1e746ad92daf469eabf2f49d4cda1d884c9e2ab8737853

Contents?: true

Size: 266 Bytes

Versions: 2

Compression:

Stored size: 266 Bytes

Contents

require 'active_model'

class Post
  include ActiveModel::Conversion
  extend ActiveModel::Naming

  attr_accessor :body, :summary

  def initialize(body: nil, summary: nil)
    self.body = body
    self.summary = summary
  end

  def persisted?
    false
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
trix_rails-0.1.0 test/dummy/app/models/post.rb
trix_editor_helper-0.1.0 test/dummy/app/models/post.rb