class BrainDamage::View::Display::InlineEditable

Public Class Methods

new(field, options) click to toggle source
# File lib/generators/brain_damage/lib/views/displays/inline_editable.rb, line 8
def initialize(field, options)
  super
  @if = options[:if] || nil
end

Public Instance Methods

conditions?() click to toggle source
# File lib/generators/brain_damage/lib/views/displays/inline_editable.rb, line 13
def conditions?
  false
end
display(identifier = :inline_editable_display) click to toggle source
# File lib/generators/brain_damage/lib/views/displays/inline_editable.rb, line 17
def display(identifier = :inline_editable_display)
  field.display identifier
end
input(identifier = :default) click to toggle source
# File lib/generators/brain_damage/lib/views/displays/inline_editable.rb, line 21
def input(identifier = :default)
  field.input identifier
end