1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00
heartcombo--simple_form/lib/simple_form/components/hint.rb
2009-12-10 11:23:48 -02:00

17 lines
272 B
Ruby

module SimpleForm
module Components
class Hint < Base
def valid?
!hidden_input? && !hint.blank?
end
def hint
@hint ||= options[:hint] || translate
end
def content
component_tag hint
end
end
end
end