Sha256: 81c1e34596d95bc4dbfedd77122e2612fbc88e463a31fafa4511afd10e286aa0

Contents?: true

Size: 323 Bytes

Versions: 8

Compression:

Stored size: 323 Bytes

Contents

module DismissibleBlocks
  module Controllers
    module Helpers
      extend ActiveSupport::Concern

      included do
        helper_method :dismissible_blocks_controller?
      end

      private

        def dismissible_blocks_controller?
          controller_path == 'dismissible_blocks'
        end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dismissible_blocks-2.0.4 lib/dismissible_blocks/controllers/helpers.rb
dismissible_blocks-2.0.3 lib/dismissible_blocks/controllers/helpers.rb
dismissible_blocks-2.0.2 lib/dismissible_blocks/controllers/helpers.rb
dismissible_blocks-2.0.1 lib/dismissible_blocks/controllers/helpers.rb
dismissible_blocks-2.0.0 lib/dismissible_blocks/controllers/helpers.rb
dismissible_blocks-1.2.0 lib/dismissible_blocks/controllers/helpers.rb
dismissible_blocks-1.1.1 lib/dismissible_blocks/controllers/helpers.rb
dismissible_blocks-1.1.0 lib/dismissible_blocks/controllers/helpers.rb