Sha256: 88023ee92a110a48a37e167a0ec88b4dadd53b54eeb382f54ac4e2bd0affa360

Contents?: true

Size: 257 Bytes

Versions: 32

Compression:

Stored size: 257 Bytes

Contents

# frozen_string_literal: true
module ActiveAdmin
  class ControllerAction
    attr_reader :name
    def initialize(name, options = {})
      @name = name
      @options = options
    end

    def http_verb
      @options[:method] ||= :get
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
activeadmin-4.0.0.beta15 lib/active_admin/controller_action.rb
activeadmin-4.0.0.beta14 lib/active_admin/controller_action.rb
activeadmin-4.0.0.beta13 lib/active_admin/controller_action.rb
activeadmin-4.0.0.beta12 lib/active_admin/controller_action.rb
activeadmin-3.2.5 lib/active_admin/controller_action.rb
activeadmin-4.0.0.beta11 lib/active_admin/controller_action.rb
activeadmin-3.2.4 lib/active_admin/controller_action.rb
activeadmin-4.0.0.beta10 lib/active_admin/controller_action.rb
activeadmin-4.0.0.beta9 lib/active_admin/controller_action.rb
activeadmin-3.2.3 lib/active_admin/controller_action.rb
activeadmin-4.0.0.beta8 lib/active_admin/controller_action.rb
activeadmin-4.0.0.beta7 lib/active_admin/controller_action.rb
activeadmin-3.2.2 lib/active_admin/controller_action.rb
activeadmin-4.0.0.beta6 lib/active_admin/controller_action.rb
activeadmin-3.2.1 lib/active_admin/controller_action.rb
activeadmin-4.0.0.beta5 lib/active_admin/controller_action.rb
activeadmin-4.0.0.beta4 lib/active_admin/controller_action.rb
activeadmin-4.0.0.beta3 lib/active_admin/controller_action.rb
activeadmin-4.0.0.beta2 lib/active_admin/controller_action.rb
activeadmin-4.0.0.beta1 lib/active_admin/controller_action.rb