Module: InlineEditor::ApplicationHelper

Defined in:
lib/inline_editor.rb

Instance Method Summary collapse

Instance Method Details

#inline_editor(as: '', text: '', collection: '', value: '', include_blank: '', save_url: '', param: '', &block) ⇒ Object



5
6
7
8
9
10
# File 'lib/inline_editor.rb', line 5

def inline_editor(as: '', text: '', collection: '', value: '', include_blank: '', save_url: '', param: '', &block)
  text = capture(&block) if block_given?

  render 'inline_editor/inline_editor', as: as, text: text, collection: collection, value: value,
    include_blank: include_blank, save_url: save_url, param: param
end