Sha256: 33b3fab5e2c51df1bb865a8c7a0504f016d21c447b6a9abecc9e9d5b3e9d1825
Contents?: true
Size: 365 Bytes
Versions: 3
Compression:
Stored size: 365 Bytes
Contents
module Rehearsal module ViewHelpers def rehearsal_banner(options = {}) return unless rehearsing? content_tag :div, :id => 'rehearsal-banner' do options[:message] || default_message end end private def default_message 'This is your rehearsal banner. Override this text with the :message option.' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rehearsal-1.1.0 | lib/rehearsal/view_helpers.rb |
rehearsal-1.0.1 | lib/rehearsal/view_helpers.rb |
rehearsal-1.0.0 | lib/rehearsal/view_helpers.rb |