Sha256: 87182ecb2face4f8556a44c4f1f41a9aef92cbed8128b099f7984c48b661b532

Contents?: true

Size: 529 Bytes

Versions: 4

Compression:

Stored size: 529 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

4 entries across 4 versions & 1 rubygems

Version Path
dynamic_controller-0.0.12 spec/controller_factory.rb
dynamic_controller-0.0.11 spec/controller_factory.rb
dynamic_controller-0.0.10 spec/controller_factory.rb
dynamic_controller-0.0.9 spec/controller_factory.rb