Module: ResourceController

Defined in:
lib/resource_controller/accessors.rb,
lib/urligence.rb,
lib/resource_controller.rb,
lib/resource_controller/base.rb,
lib/resource_controller/actions.rb,
lib/resource_controller/helpers.rb,
lib/resource_controller/singleton.rb,
lib/resource_controller/controller.rb,
lib/resource_controller/helpers/urls.rb,
lib/resource_controller/action_options.rb,
lib/resource_controller/helpers/nested.rb,
lib/resource_controller/helpers/internal.rb,
lib/resource_controller/response_collector.rb,
lib/resource_controller/failable_action_options.rb,
lib/resource_controller/helpers/current_objects.rb,
lib/resource_controller/helpers/singleton_customizations.rb

Overview

Singleton Resource Helpers

Used internally to transform a plural RESTful controller into a singleton

Defined Under Namespace

Modules: Accessors, Actions, Controller, Helpers, Urligence Classes: ActionOptions, Base, FailableActionOptions, Railtie, ResponseCollector, Singleton

Constant Summary collapse

ACTIONS =
[:index, :show, :new_action, :create, :edit, :update, :destroy].freeze
SINGLETON_ACTIONS =
(ACTIONS - [:index]).freeze
FAILABLE_ACTIONS =
ACTIONS - [:index, :new_action, :edit].freeze
NAME_ACCESSORS =
[:model_name, :route_name, :object_name]