Sha256: bb7f9f3398536e6252e40e27fa3a4326b64992c26f4ee0b0e4552e830d7eb4a2

Contents?: true

Size: 322 Bytes

Versions: 6

Compression:

Stored size: 322 Bytes

Contents

module Trax
  module Controller
    module ActionTypes
      extend ::ActiveSupport::Concern

      def current_action
        :"#{request.params["action"]}"
      end

      def collection_action?
        !!get_collection_ivar
      end

      def resource_action?
        !!get_resource_ivar
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
trax_controller-1.0.0 lib/trax/controller/action_types.rb
trax_controller-0.1.4 lib/trax/controller/action_types.rb
trax_controller-0.1.3 lib/trax/controller/action_types.rb
trax_controller-0.1.2 lib/trax/controller/action_types.rb
trax_controller-0.1.1 lib/trax/controller/action_types.rb
trax_controller-0.1.0 lib/trax/controller/action_types.rb