Module: Birdie::Controller
- Defined in:
- lib/birdie/controller.rb
Class Method Summary collapse
Instance Method Summary collapse
- #builder(klass) ⇒ Object
- #create_action(&block) ⇒ Object
- #destroy_action(&block) ⇒ Object
- #index_action(&block) ⇒ Object
- #show_action(&block) ⇒ Object
- #update_action(&block) ⇒ Object
Class Method Details
.extended(base) ⇒ Object
9 10 11 |
# File 'lib/birdie/controller.rb', line 9 def self.extended(base) base.send(:include, Lotus::Controller) end |
Instance Method Details
#builder(klass) ⇒ Object
13 14 15 |
# File 'lib/birdie/controller.rb', line 13 def builder(klass) @builder_klass = klass end |
#create_action(&block) ⇒ Object
25 26 27 |
# File 'lib/birdie/controller.rb', line 25 def create_action(&block) define_action('Create', &block) end |
#destroy_action(&block) ⇒ Object
33 34 35 |
# File 'lib/birdie/controller.rb', line 33 def destroy_action(&block) define_action('Destroy', &block) end |
#index_action(&block) ⇒ Object
17 18 19 |
# File 'lib/birdie/controller.rb', line 17 def index_action(&block) define_action('Index', &block) end |
#show_action(&block) ⇒ Object
21 22 23 |
# File 'lib/birdie/controller.rb', line 21 def show_action(&block) define_action('Show', &block) end |
#update_action(&block) ⇒ Object
29 30 31 |
# File 'lib/birdie/controller.rb', line 29 def update_action(&block) define_action('Update', &block) end |