class MachinesController < ThingsController

  before_filter :require_login, except: [:index]

  defaults :resource_class => Machine

  def show
    @machine = Machine.includes(:brand,:links).find(params[:id])
  end

protected
  def collection
    @machines ||= end_of_association_chain.includes(:brand, :tags)
  end
end

class MachinesController < ThingsController

  # Make the machines openly accessible
  # before_filter :require_login, except: [:index]

  defaults :resource_class => Machine

  def show
    @machine = Machine.includes(:brand,:links).find(params[:id])
  end

protected
  def collection
    @machines ||= end_of_association_chain.includes(:brand, :tags)
  end
end

Make the machines openly accessible
Make the machines openly accessible
