Class: Fendhal::Controller
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Fendhal::Controller
- Defined in:
- lib/fendhal/controller.rb
Class Method Summary collapse
Class Method Details
.defines(*actions) ⇒ Object
4 5 6 7 8 |
# File 'lib/fendhal/controller.rb', line 4 def self.defines *actions actions.each do |action| define_method(action) { class_for(action).new(self).action } end end |