Sha256: f8fa49f4801acfc045f7c409d2d56681731fcff1c98baa517881c8ffa9281ac0
Contents?: true
Size: 427 Bytes
Versions: 3
Compression:
Stored size: 427 Bytes
Contents
module GrapeSwaggerRails class ApplicationController < ActionController::Base if Rails::VERSION::MAJOR >= 4 before_action { run_before_action } else before_filter { run_before_action } end def index end private def run_before_action return unless GrapeSwaggerRails.options.before_action instance_exec(request, &GrapeSwaggerRails.options.before_action) end end end
Version data entries
3 entries across 3 versions & 1 rubygems