Sha256: 20c05c33d61d1db86124ba1b8044334d79250d58c44a79006f71931c4a156f65

Contents?: true

Size: 275 Bytes

Versions: 28

Compression:

Stored size: 275 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, lambda { |list| where(:class_name => list) }
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
kuhsaft-1.2.9 app/models/kuhsaft/brick_type.rb
kuhsaft-1.2.8 app/models/kuhsaft/brick_type.rb
kuhsaft-1.2.7 app/models/kuhsaft/brick_type.rb
kuhsaft-1.2.6 app/models/kuhsaft/brick_type.rb
kuhsaft-1.2.5 app/models/kuhsaft/brick_type.rb
kuhsaft-1.2.4 app/models/kuhsaft/brick_type.rb
kuhsaft-1.2.3 app/models/kuhsaft/brick_type.rb
kuhsaft-1.2.2 app/models/kuhsaft/brick_type.rb