Module: Formtastic::Actions::Buttonish

Defined in:
lib/page_record/formtastic.rb

Instance Method Summary collapse

Instance Method Details

#extra_button_html_optionsObject

This is a replacement method for the original extra_button_html_options method from Formtastic The only thing it does, is merge the action_for into the output. The extra_button_html_options is called for all action methods



44
45
46
47
# File 'lib/page_record/formtastic.rb', line 44

def extra_button_html_options
  extend(PageRecord::Helpers)
  extra_button_html_options_org.merge(action_for(@method))
end

#extra_button_html_options_orgObject



37
# File 'lib/page_record/formtastic.rb', line 37

alias_method :extra_button_html_options_org, :extra_button_html_options