app/helpers/bootstrap/alert_helper.rb in bootstrap-view-helpers-0.0.10 vs app/helpers/bootstrap/alert_helper.rb in bootstrap-view-helpers-0.0.11
- old
+ new
@@ -21,10 +21,10 @@
ALERT_ATTRIBUTES = %w(error success info block)
# @overload alert(text, alert_type, options={})
# @param text [String] text of the label
# @param alert_type [Symbol, String] if present must be one of {Bootstrap::AlertHelper::ALERT_ATTRIBUTES}
- # @param options [Hash] html attributes for returned alert <div>
+ # @param options [Hash] unrecognized options become html attributes for returned alert <div>
# @option options [String] :heading if present, include a heading in the alert
# @option options [Boolean] :close if +false+, don't include a close link ('x')
# @return [String] Returns html for alert
def alert(*args, &block)
text = args.shift unless block_given?
\ No newline at end of file