Module: Magicka::Helper
- Extended by:
- ClassMethods
- Defined in:
- lib/magicka/helper.rb,
lib/magicka/helper/class_methods.rb,
lib/magicka/helper/method_builder.rb,
lib/magicka/helper/aggregator_options.rb
Overview
Helper module to be used on rails
Defined Under Namespace
Modules: ClassMethods Classes: AggregatorOptions, MethodBuilder
Class Method Summary collapse
-
.with(aggregator_class, type = aggregator_class.type, &config_block) ⇒ Array<NilClass>
Adds a helper method magicka_
type
.
Instance Method Summary collapse
-
#magicka_display(model) {|Magicka::Display| ... } ⇒ String
Execute a block with an aggregator focused on a model.
-
#magicka_form(model) {|Magicka::Form| ... } ⇒ String
Execute a block with an aggregator focused on a model.
Methods included from ClassMethods
Class Method Details
.with(aggregator_class, type = aggregator_class.type, &config_block) ⇒ Array<NilClass>
Adds a helper method magicka_type
The created method executes a block with a an aggragator
|
# File 'lib/magicka/helper.rb', line 17
|
Instance Method Details
#magicka_display(model) {|Magicka::Display| ... } ⇒ String
Execute a block with an aggregator focused on a model
The aggregator renders elements as display elements
|
# File 'lib/magicka/helper.rb', line 48
|
#magicka_form(model) {|Magicka::Form| ... } ⇒ String
Execute a block with an aggregator focused on a model
The aggregator renders elements as form elements
|
# File 'lib/magicka/helper.rb', line 33
|