lib/megar/catalog/catalog_item.rb
# Returns the expected class of items in the collection
Returns the expected class of items in the collection
Returns the expected class of items in the collection
def resource_class
    "#{self.class.name}".chomp('s').constantize
  rescue
    nil
  end
def resource_class "#{self.class.name}" . chomp ( 's' ) . constantize rescue nil end
Returns the expected class of items in the collection
Returns the expected class of items in the collection