Sha256: a722fb662e12d195de060dda5a9181049e668961b52b76f5581d3103164128f9

Contents?: true

Size: 284 Bytes

Versions: 1

Compression:

Stored size: 284 Bytes

Contents

module Kuhsaft
  class BrickType < ActiveRecord::Base
    attr_accessible :disabled, :class_name, :group
    scope :grouped, order('`group`, `id` asc')
    scope :enabled, where('disabled IS NOT "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.0 app/models/kuhsaft/brick_type.rb