Sha256: de6c3606d7d01ff5a49d8b618d4ee594d53e3492ed7e04a32b43411498713d04

Contents?: true

Size: 354 Bytes

Versions: 15

Compression:

Stored size: 354 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

15 entries across 15 versions & 1 rubygems

Version Path
draper-0.10.0 spec/support/samples/decorator_with_application_helper.rb
draper-0.9.5 spec/support/samples/decorator_with_application_helper.rb
draper-0.9.3 spec/samples/decorator_with_application_helper.rb
draper-0.9.2 spec/samples/decorator_with_application_helper.rb
draper-0.9.1 spec/samples/decorator_with_application_helper.rb
draper-0.9.0 spec/samples/decorator_with_application_helper.rb
draper-0.8.1 spec/samples/decorator_with_application_helper.rb
draper-0.8.0 spec/samples/decorator_with_application_helper.rb
draper-0.7.4 spec/samples/decorator_with_application_helper.rb
draper-0.7.3 spec/samples/decorator_with_application_helper.rb
draper-0.7.2 spec/samples/decorator_with_application_helper.rb
draper-0.7.1 spec/samples/decorator_with_application_helper.rb
draper-0.7.0 spec/samples/decorator_with_application_helper.rb
draper-0.5.0 spec/samples/decorator_with_application_helper.rb
draper-0.4.2 spec/samples/decorator_with_application_helper.rb