class ActionDispatch::Routing::Mapper::Resources::SingletonResource
:nodoc:
def default_actions
def default_actions if @api_only [:show, :create, :update, :destroy] else [:show, :create, :update, :destroy, :new, :edit] end end
def initialize(entities, api_only, shallow, options)
def initialize(entities, api_only, shallow, options) super @as = nil @controller = (options[:controller] || plural).to_s @as = options[:as] end
def plural
def plural @plural ||= name.to_s.pluralize end
def singleton?; true; end
def singleton?; true; end
def singular
def singular @singular ||= name.to_s end