Sha256: 7a83742db62c48a83f8812d58caa44fa2396f81e5a41f35c79828aa349c1d69e

Contents?: true

Size: 505 Bytes

Versions: 20

Compression:

Stored size: 505 Bytes

Contents

module Trestle
  module Controller
    module Callbacks
      extend ActiveSupport::Concern

      included do
        Trestle.config.before_actions.each do |action|
          before_action(action.options, &action.block)
        end

        Trestle.config.after_actions.each do |action|
          after_action(action.options, &action.block)
        end

        Trestle.config.around_actions.each do |action|
          around_action(action.options, &action.block)
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
trestle-0.10.1 app/controllers/concerns/trestle/controller/callbacks.rb
trestle-0.10.0 app/controllers/concerns/trestle/controller/callbacks.rb
trestle-0.10.0.pre2 app/controllers/concerns/trestle/controller/callbacks.rb
trestle-0.10.0.pre app/controllers/concerns/trestle/controller/callbacks.rb
trestle-0.9.8 app/controllers/concerns/trestle/controller/callbacks.rb
trestle-0.9.7 app/controllers/concerns/trestle/controller/callbacks.rb
trestle-0.9.6 app/controllers/concerns/trestle/controller/callbacks.rb
trestle-0.9.5 app/controllers/concerns/trestle/controller/callbacks.rb
trestle-0.9.4 app/controllers/concerns/trestle/controller/callbacks.rb
trestle-0.9.3 app/controllers/concerns/trestle/controller/callbacks.rb
trestle-0.9.2 lib/trestle/controller/callbacks.rb
trestle-0.9.1 lib/trestle/controller/callbacks.rb
trestle-0.9.0 lib/trestle/controller/callbacks.rb
trestle-0.8.13 lib/trestle/controller/callbacks.rb
trestle-0.8.12 app/controllers/concerns/trestle/controller/callbacks.rb
trestle-0.8.11 app/controllers/concerns/trestle/controller/callbacks.rb
trestle-0.8.10 app/controllers/concerns/trestle/controller/callbacks.rb
trestle-0.8.9 app/controllers/concerns/trestle/controller/callbacks.rb
trestle-0.8.8 app/controllers/concerns/trestle/controller/callbacks.rb
trestle-0.8.7 app/controllers/concerns/trestle/controller/callbacks.rb