Sha256: cbc02c0f929b7eff680090989a4043630e9fbc06f99e2fe428757b225870ad8b

Contents?: true

Size: 300 Bytes

Versions: 7

Compression:

Stored size: 300 Bytes

Contents

class DecoratorWithDenies < Draper::Base  
  denies :upcase
  
  def sample_content
    content_tag :span, "Hello, World!"
  end
  
  def sample_link
    link_to "Hello", "/World"
  end
  
  def sample_truncate
    ActionView::Helpers::TextHelper.truncate("Once upon a time", :length => 7)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
draper-0.4.1.1 spec/samples/decorator_with_denies.rb
draper-0.4.1 spec/samples/decorator_with_denies.rb
draper-0.4.0 spec/samples/decorator_with_denies.rb
draper-0.3.5 spec/samples/decorator_with_denies.rb
draper-0.3.4 spec/samples/decorator_with_denies.rb
draper-0.3.3 spec/samples/decorator_with_denies.rb
draper-0.3.2 spec/samples/decorator_with_denies.rb