Sha256: 253ac693f032face604d3f4bcb9a696a0f6b9be329204944c2e6f3e69159d471

Contents?: true

Size: 287 Bytes

Versions: 13

Compression:

Stored size: 287 Bytes

Contents

module Partystreusel::Helpers::ReadmoreHelper

  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

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
partystreusel-2.0.0 lib/partystreusel/helpers/readmore_helper.rb
partystreusel-1.2.0 lib/partystreusel/helpers/readmore_helper.rb
partystreusel-1.1.1 lib/partystreusel/helpers/readmore_helper.rb
partystreusel-1.1.0 lib/partystreusel/helpers/readmore_helper.rb
partystreusel-1.1.0pre2 lib/partystreusel/helpers/readmore_helper.rb
partystreusel-1.1.0pre1 lib/partystreusel/helpers/readmore_helper.rb
partystreusel-1.0.8 lib/partystreusel/helpers/readmore_helper.rb
partystreusel-1.0.7 lib/partystreusel/helpers/readmore_helper.rb
partystreusel-1.0.6 lib/partystreusel/helpers/readmore_helper.rb
partystreusel-1.0.5 lib/partystreusel/helpers/readmore_helper.rb
partystreusel-1.0.4 lib/partystreusel/helpers/readmore_helper.rb
partystreusel-1.0.3 lib/partystreusel/helpers/readmore_helper.rb
partystreusel-1.0.2 lib/partystreusel/helpers/readmore_helper.rb