Sha256: e64f3141de29fd615c1e460a175490c7688dbb88913e13200e1d8802178ee1cf

Contents?: true

Size: 294 Bytes

Versions: 12

Compression:

Stored size: 294 Bytes

Contents

class Detour::ApplicationController < ActionController::Base
  def index
  end

  private

  def ensure_flaggable_type_exists
    unless Detour.config.flaggable_types.map(&:tableize).include? params[:flaggable_type]
      raise ActionController::RoutingError.new("Not Found")
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
detour-0.0.15 app/controllers/detour/application_controller.rb
detour-0.0.14 app/controllers/detour/application_controller.rb
detour-0.0.13 app/controllers/detour/application_controller.rb
detour-0.0.12 app/controllers/detour/application_controller.rb
detour-0.0.11 app/controllers/detour/application_controller.rb
detour-0.0.10 app/controllers/detour/application_controller.rb
detour-0.0.9 app/controllers/detour/application_controller.rb
detour-0.0.7 app/controllers/detour/application_controller.rb
detour-0.0.6 app/controllers/detour/application_controller.rb
detour-0.0.5 app/controllers/detour/application_controller.rb
detour-0.0.3 app/controllers/detour/application_controller.rb
detour-0.0.2 app/controllers/detour/application_controller.rb