Sha256: 2a7951b48b19c6ec99e84f5aea12ec43f79109e3fd79f615e0f6ca8cafc1f2d4

Contents?: true

Size: 254 Bytes

Versions: 4

Compression:

Stored size: 254 Bytes

Contents

module Qor
  module Layout
    module Action
      def self.detect_action(app)
        Qor::Layout::Configuration.find(:action).map do |action|
          return action if action.first(:detect).block.safe_call(app)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
qor_layout-0.0.5 lib/qor/layout/action.rb
qor_layout-0.0.4 lib/qor/layout/action.rb
qor_layout-0.0.3 lib/qor/layout/action.rb
qor_layout-0.0.2 lib/qor/layout/action.rb