Sha256: b28b3bce1d50bafc340e42ac9be1b773144ff0da35f004cf4fcb2a04eaac8725

Contents?: true

Size: 336 Bytes

Versions: 2

Compression:

Stored size: 336 Bytes

Contents

module Rehearsal
  module ViewHelpers
    def staging_banner(options = {})
      content_tag :div, :id => 'rehearsal-staging-banner' do
        options[:message] || default_message
      end
    end

    private
    def default_message
      'This is your staging banner. Override this text with the :message option.'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rehearsal-0.9.1 lib/rehearsal/view_helpers.rb
rehearsal-0.9.0 lib/rehearsal/view_helpers.rb