Sha256: 01cf6d51aec2f97a5474877e39e6ebaa66013186760294b8228cf6194c16c204

Contents?: true

Size: 550 Bytes

Versions: 72

Compression:

Stored size: 550 Bytes

Contents

# == Schema Information
#
# Table name: service_categories
#
#  id   :integer(4)      not null, primary key
#  name :string(255)     not null
#  sort :integer(4)      default(0)
#

class ServiceCategory < ActiveRecord::Base
  named_scope :sorted, :order => "sort ASC"
  has_many :services, :order => 'sort ASC'
  has_many :identity_services, :class_name => 'Service', :order => 'sort ASC', :conditions => ['use_for = ?', 'identity']
  has_many :tag_services, :class_name => 'Service', :order => 'sort ASC', :conditions => ['use_for = ?', 'tags']
end

Version data entries

72 entries across 72 versions & 2 rubygems

Version Path
muck-services-0.1.47 app/models/service_category.rb
muck-services-0.1.46 app/models/service_category.rb
muck-services-0.1.45 app/models/service_category.rb
muck-services-0.1.44 app/models/service_category.rb
muck-services-0.1.43 app/models/service_category.rb
muck-services-0.1.42 app/models/service_category.rb
muck-services-0.1.41 app/models/service_category.rb
muck-services-0.1.40 app/models/service_category.rb
muck-services-0.1.39 app/models/service_category.rb
muck-services-0.1.38 app/models/service_category.rb
muck-services-0.1.37 app/models/service_category.rb
muck-services-0.1.36 app/models/service_category.rb
muck-services-0.1.35 app/models/service_category.rb
muck-services-0.1.34 app/models/service_category.rb
muck-services-0.1.33 app/models/service_category.rb
muck-services-0.1.32 app/models/service_category.rb
muck-services-0.1.31 app/models/service_category.rb
muck-services-0.1.30 app/models/service_category.rb
muck-services-0.1.29 app/models/service_category.rb
muck-services-0.1.28 app/models/service_category.rb