Sha256: e576cd11ac2a6fa34936154d3932dd95dbcb7f9bd52930b82fcfeb47575198ca

Contents?: true

Size: 233 Bytes

Versions: 11

Compression:

Stored size: 233 Bytes

Contents

module Kuhsaft
  class BrickType < ActiveRecord::Base
    scope :grouped, -> { order('`group`, `id` asc') }
    scope :enabled, -> { where(:enabled => true) }
    scope :constrained, ->(list) { where(:class_name => list) }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
kuhsaft-2.2.6 app/models/kuhsaft/brick_type.rb
kuhsaft-2.2.5 app/models/kuhsaft/brick_type.rb
kuhsaft-2.2.4 app/models/kuhsaft/brick_type.rb
kuhsaft-2.2.3 app/models/kuhsaft/brick_type.rb
kuhsaft-2.2.2 app/models/kuhsaft/brick_type.rb
kuhsaft-2.2.1 app/models/kuhsaft/brick_type.rb
kuhsaft-2.2.0 app/models/kuhsaft/brick_type.rb
kuhsaft-2.1.2 app/models/kuhsaft/brick_type.rb
kuhsaft-2.1.1 app/models/kuhsaft/brick_type.rb
kuhsaft-2.1.0 app/models/kuhsaft/brick_type.rb
kuhsaft-2.0.3 app/models/kuhsaft/brick_type.rb