Class: ActiveAdminAddons::CustomBuilder
- Inherits:
-
Object
- Object
- ActiveAdminAddons::CustomBuilder
- Defined in:
- lib/activeadmin_addons/support/custom_builder.rb
Direct Known Subclasses
BoolBuilder, EnumBuilder, NumberBuilder, PaperclipAttachmentBuilder, PaperclipImageBuilder, StateBuilder, ListBuilder
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#block ⇒ Object
Returns the value of attribute block.
-
#context ⇒ Object
Returns the value of attribute context.
-
#model ⇒ Object
Returns the value of attribute model.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(context, model, *args, &block) ⇒ CustomBuilder
constructor
A new instance of CustomBuilder.
- #render ⇒ Object
Constructor Details
#initialize(context, model, *args, &block) ⇒ CustomBuilder
Returns a new instance of CustomBuilder.
5 6 7 8 9 10 |
# File 'lib/activeadmin_addons/support/custom_builder.rb', line 5 def initialize(context, model, *args, &block) @context = context @model = model @args = *args @block = block end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
3 4 5 |
# File 'lib/activeadmin_addons/support/custom_builder.rb', line 3 def args @args end |
#block ⇒ Object
Returns the value of attribute block.
3 4 5 |
# File 'lib/activeadmin_addons/support/custom_builder.rb', line 3 def block @block end |
#context ⇒ Object
Returns the value of attribute context.
3 4 5 |
# File 'lib/activeadmin_addons/support/custom_builder.rb', line 3 def context @context end |
#model ⇒ Object
Returns the value of attribute model.
3 4 5 |
# File 'lib/activeadmin_addons/support/custom_builder.rb', line 3 def model @model end |
Class Method Details
.render(context, model, *args, &block) ⇒ Object
15 16 17 |
# File 'lib/activeadmin_addons/support/custom_builder.rb', line 15 def self.render(context, model, *args, &block) new(context, model, *args, &block).render end |
Instance Method Details
#render ⇒ Object
12 13 |
# File 'lib/activeadmin_addons/support/custom_builder.rb', line 12 def render end |