module Resourceful::Base

All modules included by this module are made available to the controller as accessors.

Public Class Methods

made_resourceful(&block) click to toggle source

This method is meant to be called by included classes. It takes a block of the same form as that given to Maker#make_resourceful. The Maker will then run that block along with the blocks given by the individual controllers.

# File lib/resourceful/base.rb, line 43
def self.made_resourceful(&block)
  if block
    @@made_resourceful_callbacks << block
  else
    @@made_resourceful_callbacks
  end
end