app/helpers/bootstrap_component_helper.rb in bs-helper-0.1.2 vs app/helpers/bootstrap_component_helper.rb in bs-helper-0.1.3
- old
+ new
@@ -219,11 +219,11 @@
# options -
# type - type of alerts: error, warning, success, info. default: warning
# block: true, false, add padding to alert component. default: false
# closable: true, false, add a close button to alert. default: true
# the other options that can be accepted by div
- def flash(message=nil, options={}, &block)
+ def f(message=nil, options={}, &block)
message, options = nil, message if message.is_a?(Hash)
default_options = {closable: true, block: false}
options.reverse_merge!(default_options)
@@ -239,11 +239,9 @@
content << message if message
content << capture(&block) if block_given?
content.join.html_safe
end
end
-
- alias_method :f, :flash
# Progress bars
#
# the first parameter is a hash:
# active - true, false. it's the active style of the bar.
\ No newline at end of file