Use ternary operator

This commit is contained in:
Rafael Mendonça França 2012-06-26 23:34:07 -03:00
parent 6ba4971f8e
commit c9562055b4
1 changed files with 1 additions and 3 deletions

View File

@ -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