Sha256: 1c6b29f73aa7205a1a0698b24ff490dd34218dd9b1bc57ee210b145dcd9f9814

Contents?: true

Size: 217 Bytes

Versions: 1

Compression:

Stored size: 217 Bytes

Contents

require 'hibachi'

class MockSetting < Hibachi::Model
  recipe :mock_settings

  attr_accessor :name, :is_active

  validates :name, :presence => true

  def active?
    !!is_active
  end

  def id
    name
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hibachi-0.0.1 spec/support/mock_setting.rb