Sha256: 3c7be9010172a1032491dba6d237d2b5967484f7a08439f357268e98f0aa57c3

Contents?: true

Size: 281 Bytes

Versions: 1

Compression:

Stored size: 281 Bytes

Contents

module Kuhsaft
  class BrickType < ActiveRecord::Base
    attr_accessible :disabled, :class_name, :group
    scope :grouped, order('`group`, `id` asc')
    scope :enabled, where('disabled != ?', false)
    scope :constrained, lambda { |list| where(:class_name => list) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kuhsaft-1.2.1 app/models/kuhsaft/brick_type.rb