Sha256: d62734136f40af2e8508e40ae9c01f458015f3436ceed7ef775f6225912026a7

Contents?: true

Size: 284 Bytes

Versions: 3

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(:enabled => true) }
    scope :constrained, ->(list) { where(:class_name => list) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kuhsaft-2.0.2 app/models/kuhsaft/brick_type.rb
kuhsaft-2.0.1 app/models/kuhsaft/brick_type.rb
kuhsaft-2.0.0 app/models/kuhsaft/brick_type.rb