Sha256: d07249a5149d6c8275e57771943c7f21ed1c70c44d9ba23664691c3f9916fcdf

Contents?: true

Size: 159 Bytes

Versions: 9

Compression:

Stored size: 159 Bytes

Contents

# frozen-string-literal: true
class Book
  include ActiveModel::Model

  attr_accessor :id, :title

  def to_s
    "<span>#{title}</span>".html_safe
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
faml-0.7.3 spec/rails/app/models/book.rb
faml-0.7.2 spec/rails/app/models/book.rb
faml-0.7.1 spec/rails/app/models/book.rb
faml-0.7.0 spec/rails/app/models/book.rb
faml-0.6.5 spec/rails/app/models/book.rb
faml-0.6.4 spec/rails/app/models/book.rb
faml-0.6.3 spec/rails/app/models/book.rb
faml-0.6.2 spec/rails/app/models/book.rb
faml-0.6.1 spec/rails/app/models/book.rb