Sha256: 1194c542cafbc2a1e8233b236ec944a6f567044e6d2370f10388dbf27d458568

Contents?: true

Size: 226 Bytes

Versions: 16

Compression:

Stored size: 226 Bytes

Contents

module Qbrick
  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

16 entries across 16 versions & 1 rubygems

Version Path
qbrick-2.7.1 app/models/qbrick/brick_type.rb
qbrick-2.7 app/models/qbrick/brick_type.rb
qbrick-2.6.10 app/models/qbrick/brick_type.rb
qbrick-2.6.9 app/models/qbrick/brick_type.rb
qbrick-2.6.8 app/models/qbrick/brick_type.rb
qbrick-2.6.7 app/models/qbrick/brick_type.rb
qbrick-2.6.6 app/models/qbrick/brick_type.rb
qbrick-2.6.5 app/models/qbrick/brick_type.rb
qbrick-2.6.4 app/models/qbrick/brick_type.rb
qbrick-2.6.3 app/models/qbrick/brick_type.rb
qbrick-2.6.2 app/models/qbrick/brick_type.rb
qbrick-2.6.1 app/models/qbrick/brick_type.rb
qbrick-2.6.0 app/models/qbrick/brick_type.rb
qbrick-2.5.2 app/models/qbrick/brick_type.rb
qbrick-2.5.1 app/models/qbrick/brick_type.rb
qbrick-2.5.0 app/models/qbrick/brick_type.rb