Skip to content

Commit

Permalink
Merge pull request #109 from benjaminsigidi/master
Browse files Browse the repository at this point in the history
Use def input(wrapper_options) instead of def input
  • Loading branch information
Nerian committed Jan 21, 2015
2 parents 1c7cb98 + 5321bf6 commit 2b6ceab
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1,5 +1,5 @@
class Wysihtml5Input < SimpleForm::Inputs::TextInput
def input
def input(wrapper_options)
idf = "#{lookup_model_names.join("_")}_#{reflection_or_attribute_name}"
script = template.content_tag(:script, type: 'text/javascript') do
"$('textarea[id=#{idf}]').wysihtml5();".html_safe
Expand Down

0 comments on commit 2b6ceab

Please sign in to comment.