Sha256: 7a79e6e2f7f314e9bfdc96df35d4da3d5f8abb32e758fd51a8f152e9cf93414a

Contents?: true

Size: 231 Bytes

Versions: 1

Compression:

Stored size: 231 Bytes

Contents

require 'hibachi'

class MockSetting < Hibachi::Model

  recipe :mock_settings

  attr_accessor :attributes, :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.pre spec/support/mock_setting.rb