Class: ActiveAdmin::Views::AttributesTable
- Inherits:
-
Object
- Object
- ActiveAdmin::Views::AttributesTable
- Defined in:
- lib/activeadmin_addons/addons/enum_tag.rb,
lib/activeadmin_addons/addons/bool_values.rb,
lib/activeadmin_addons/addons/paperclip_image.rb,
lib/activeadmin_addons/addons/paperclip_attachment.rb
Instance Method Summary collapse
- #attachment_row(attribute, options = {}) ⇒ Object
- #bool_row(attribute) ⇒ Object
- #image_row(attribute, options = {}) ⇒ Object
- #tag_row(attribute, options = {}) ⇒ Object
Instance Method Details
#attachment_row(attribute, options = {}) ⇒ Object
50 51 52 53 |
# File 'lib/activeadmin_addons/addons/paperclip_attachment.rb', line 50 def (attribute, = {}) [:truncate] = .fetch(:truncate, false) row(attribute) { |model| PaperclipAttachment.link(self, model, attribute, ) } end |
#bool_row(attribute) ⇒ Object
36 37 38 |
# File 'lib/activeadmin_addons/addons/bool_values.rb', line 36 def bool_row(attribute) row(attribute) { |model| BoolValues.bool_value(model, attribute) } end |
#image_row(attribute, options = {}) ⇒ Object
21 22 23 |
# File 'lib/activeadmin_addons/addons/paperclip_image.rb', line 21 def image_row(attribute, = {}) row(attribute) { |model| PaperclipImage.image(self, model, attribute, ) } end |
#tag_row(attribute, options = {}) ⇒ Object
21 22 23 |
# File 'lib/activeadmin_addons/addons/enum_tag.rb', line 21 def tag_row(attribute, = {}) row(attribute) { |model| EnumTag.tag(self, model, attribute, ) } end |