Sha256: 61fbfc287ee770c7ec9d33e34163f511ffc3e424bcb3a530732dd5e84f1ddd63

Contents?: true

Size: 350 Bytes

Versions: 7

Compression:

Stored size: 350 Bytes

Contents

class Category < ActiveRecord::Base
  acts_as_nested_set

  attr_protected :created_at, :updated_at

  belongs_to :category_record, :polymorphic => true
  has_many :category_classifications, :dependent => :destroy
  
  def self.iid( internal_identifier_string )
    where("internal_identifier = ?",internal_identifier_string.to_s).first
  end
  
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
erp_base_erp_svcs-4.0.0 app/models/category.rb
erp_base_erp_svcs-3.1.5 app/models/category.rb
erp_base_erp_svcs-3.1.4 app/models/category.rb
erp_base_erp_svcs-3.1.3 app/models/category.rb
erp_base_erp_svcs-3.1.2 app/models/category.rb
erp_base_erp_svcs-3.1.1 app/models/category.rb
erp_base_erp_svcs-3.1.0 app/models/category.rb