mirror of
https://github.com/heartcombo/simple_form.git
synced 2022-11-09 12:19:26 -05:00
Forgot to send some files 💣
This commit is contained in:
parent
0fc7ea87da
commit
86d0923ddc
4 changed files with 4 additions and 4 deletions
|
@ -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]
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue