Class: ResourceController::Singleton

Inherits:
ApplicationController
  • Object
show all
Defined in:
lib/resource_controller/singleton.rb

Overview

ResourceController::Singleton

Inherit from this class to create your RESTful singleton controller. See the README for usage.

Class Method Summary collapse

Class Method Details

.inherited(subclass) ⇒ Object



10
11
12
13
# File 'lib/resource_controller/singleton.rb', line 10

def self.inherited(subclass)
  super
  subclass.class_eval { resource_controller :singleton }
end