class Toolhound::Manufacturer

Class to parse GitHub repository owner and name from URLs and to generate URLs

Public Instance Methods

default_joins() click to toggle source
# File lib/toolhound-ruby/manufacturer.rb, line 20
def default_joins
  arr = []
  arr << "INNER JOIN tblManufacturerText ON (tblManufacturerText.intManufacturerID = tblManufacturer.intManufacturerID AND varLocaleID = '#{locale}')"
  # arr << "INNER JOIN tblRentalDetail ON (tblRentalDetail.intRentalDetailID = tblRentalItem.intRentalDetailID)"

  arr
end
default_selects() click to toggle source

self.table_name = :rental self.primary_key = :int_rental_id

# File lib/toolhound-ruby/manufacturer.rb, line 11
def default_selects
  {
    manufacturer:   [:int_manufacturer_id ],
    manufacturer_text: [:var_manufacturer, :var_phone, :var_fax, :var_url]
    # rental_item_detail: [:var_status, :status_date, ],
    # rental_detail: [:int_rental_id, :int_inventory_id, :int_quantity, :dec_daily, :dec_weekly, :dec_monthly, :dec_selling_price],
  }
end