Sha256: 3a8361a032ee9e3e80496a85a7a1d066433d30db1c9961a6172be3cf6b9b98ae

Contents?: true

Size: 551 Bytes

Versions: 6

Compression:

Stored size: 551 Bytes

Contents

class AllActionsController < ActionController::Base
  has_crud_actions
end

class OnlyIndexController < ActionController::Base
  has_crud_actions only: :index
end

class ExceptIndexController < ActionController::Base
  has_crud_actions except: :index
end

class OnlyAndExceptController < ActionController::Base
  has_crud_actions only: [:index, :new, :create, :edit], except: [:edit, :destroy]
end

class XlsResponderController < ActionController::Base
  has_crud_actions

  respond_to_index :xls do
    render xls: nil
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dynamic_controller-0.0.8 spec/controller_factory.rb
dynamic_controller-0.0.7 spec/controller_factory.rb
dynamic_controller-0.0.6 spec/controller_factory.rb
dynamic_controller-0.0.5 spec/controller_factory.rb
dynamic_controller-0.0.4 spec/controller_factory.rb
dynamic_controller-0.0.3 spec/controller_factory.rb