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.8.6 app/models/kuhsaft/brick_type.rb
kuhsaft-1.8.5 app/models/kuhsaft/brick_type.rb
kuhsaft-1.8.4 app/models/kuhsaft/brick_type.rb
kuhsaft-1.8.1 app/models/kuhsaft/brick_type.rb
kuhsaft-1.8.0 app/models/kuhsaft/brick_type.rb
kuhsaft-1.7.1 app/models/kuhsaft/brick_type.rb
kuhsaft-1.7.0 app/models/kuhsaft/brick_type.rb
kuhsaft-1.6.0 app/models/kuhsaft/brick_type.rb
kuhsaft-1.5.0 app/models/kuhsaft/brick_type.rb
kuhsaft-1.4.3 app/models/kuhsaft/brick_type.rb
kuhsaft-1.4.2 app/models/kuhsaft/brick_type.rb
kuhsaft-1.4.1 app/models/kuhsaft/brick_type.rb
kuhsaft-1.4.0 app/models/kuhsaft/brick_type.rb
kuhsaft-1.3.1 app/models/kuhsaft/brick_type.rb
kuhsaft-1.2.15 app/models/kuhsaft/brick_type.rb
kuhsaft-1.2.14 app/models/kuhsaft/brick_type.rb
kuhsaft-1.2.13 app/models/kuhsaft/brick_type.rb
kuhsaft-1.2.12 app/models/kuhsaft/brick_type.rb
kuhsaft-1.2.11 app/models/kuhsaft/brick_type.rb
kuhsaft-1.2.10 app/models/kuhsaft/brick_type.rb