2012-05-02 10:18:07 +01:00
|
|
|
class Platforms::BaseController < ApplicationController
|
2015-03-17 23:06:03 +00:00
|
|
|
before_action :load_platform
|
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
def load_platform
|
|
|
|
return unless params[:platform_id]
|
|
|
|
authorize @platform = Platform.find_cached(params[:platform_id]), :show?
|
|
|
|
end
|
|
|
|
|
2012-05-02 10:18:07 +01:00
|
|
|
end
|