Module: Partystreusel::Helpers::ReadmoreHelper
- Defined in:
- lib/partystreusel/helpers/readmore_helper.rb
Instance Method Summary collapse
Instance Method Details
#readmore(*rest, &block) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/partystreusel/helpers/readmore_helper.rb', line 3 def readmore(*rest, &block) attrs = {} attrs = rest.shift if rest.last.is_a?(Hash) attrs.symbolize_keys! attrs[:data] ||= {} attrs[:data]['streusel-readmore'] = true haml_tag(:div, *rest, attrs, &block) end |