Sha256: 5cf6de47d952f30a34fc23832486f82c0b985f550f6de41ff7520ff8233ca6a8

Contents?: true

Size: 344 Bytes

Versions: 10

Compression:

Stored size: 344 Bytes

Contents

class DecoratorWithApplicationHelper < Draper::Base
  def uses_hello_world
    h.hello_world
  end

  def sample_content
    h.content_tag :span, "Hello, World!"
  end

  def sample_link
    h.link_to "Hello", "/World"
  end

  def sample_truncate
    h.truncate("Once upon a time", :length => 7)
  end

  def length
    "overridden"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
draper-0.15.0 spec/support/samples/decorator_with_application_helper.rb
draper-0.15.0rc1 spec/support/samples/decorator_with_application_helper.rb
draper-0.14.0 spec/support/samples/decorator_with_application_helper.rb
draper-0.12.3 spec/support/samples/decorator_with_application_helper.rb
draper-0.12.2 spec/support/samples/decorator_with_application_helper.rb
draper-0.13.0 spec/support/samples/decorator_with_application_helper.rb
draper-0.12.1 spec/support/samples/decorator_with_application_helper.rb
draper-0.12.0 spec/support/samples/decorator_with_application_helper.rb
draper-0.11.1 spec/support/samples/decorator_with_application_helper.rb
draper-0.11.0 spec/support/samples/decorator_with_application_helper.rb