From 86d0923ddc025c8185351e4596024546c5af306f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Tue, 11 Mar 2014 19:53:29 -0300 Subject: [PATCH] Forgot to send some files :bomb: --- lib/simple_form/components/hints.rb | 2 +- lib/simple_form/components/pattern.rb | 2 +- lib/simple_form/components/placeholders.rb | 2 +- lib/simple_form/components/readonly.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/simple_form/components/hints.rb b/lib/simple_form/components/hints.rb index c58968c6..9323101d 100644 --- a/lib/simple_form/components/hints.rb +++ b/lib/simple_form/components/hints.rb @@ -2,7 +2,7 @@ module SimpleForm module Components # Needs to be enabled in order to do automatic lookups. module Hints - def hint(context = nil) + def hint(wrapper_options = nil) @hint ||= begin hint = options[:hint] diff --git a/lib/simple_form/components/pattern.rb b/lib/simple_form/components/pattern.rb index 643b7784..82a21a5d 100644 --- a/lib/simple_form/components/pattern.rb +++ b/lib/simple_form/components/pattern.rb @@ -2,7 +2,7 @@ module SimpleForm module Components # Needs to be enabled in order to do automatic lookups. module Pattern - def pattern(context = nil) + def pattern(wrapper_options = nil) input_html_options[:pattern] ||= pattern_source nil end diff --git a/lib/simple_form/components/placeholders.rb b/lib/simple_form/components/placeholders.rb index 6a71d95e..9a7520e4 100644 --- a/lib/simple_form/components/placeholders.rb +++ b/lib/simple_form/components/placeholders.rb @@ -2,7 +2,7 @@ module SimpleForm module Components # Needs to be enabled in order to do automatic lookups. module Placeholders - def placeholder(context = nil) + def placeholder(wrapper_options = nil) input_html_options[:placeholder] ||= placeholder_text nil end diff --git a/lib/simple_form/components/readonly.rb b/lib/simple_form/components/readonly.rb index 4ce78039..37c2b385 100644 --- a/lib/simple_form/components/readonly.rb +++ b/lib/simple_form/components/readonly.rb @@ -2,7 +2,7 @@ module SimpleForm module Components # Needs to be enabled in order to do automatic lookups. module Readonly - def readonly(context = nil) + def readonly(wrapper_options = nil) if readonly_attribute? && !has_readonly? input_html_options[:readonly] ||= true input_html_classes << :readonly