Method: Resourceful::Base.made_resourceful
- Defined in:
- lib/resourceful/base.rb
.made_resourceful(&block) ⇒ Object
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.
43 44 45 46 47 48 49 |
# File 'lib/resourceful/base.rb', line 43 def self.made_resourceful(&block) if block @@made_resourceful_callbacks << block else @@made_resourceful_callbacks end end |