Use ternary operator
This commit is contained in:
parent
6ba4971f8e
commit
c9562055b4
|
@ -17,9 +17,7 @@ module SimpleForm
|
|||
private
|
||||
|
||||
def html_options(options)
|
||||
return {} if [:label, :input].include?(namespace)
|
||||
|
||||
super
|
||||
[:label, :input].include?(namespace) ? {} : super
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue