Sha256: 80e0469b9b7ff5f7a0869db70d60fc8e8f56aff385dd26e93f52740d76c344a6

Contents?: true

Size: 318 Bytes

Versions: 6

Compression:

Stored size: 318 Bytes

Contents

module Cockpit
  module ViewHelpers
    unless respond_to?(:c)
      def c(key)
        Cockpit::Settings.global[key]
      end
    end
  end
end

::ActionView::Helpers.send(:include, Cockpit::ViewHelpers) if defined?(::ActionView::Helpers)
::Sinatra.helpers.send(:helper, Cockpit::ViewHelpers) if defined?(::Sinatra)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cockpit-0.2.4.1 lib/cockpit/core/helpers.rb
cockpit-0.2.4 lib/cockpit/core/helpers.rb
cockpit-0.2.3 lib/cockpit/core/helpers.rb
cockpit-0.2.2 lib/cockpit/core/helpers.rb
cockpit-0.2.1 lib/cockpit/core/helpers.rb
cockpit-0.2.0 lib/cockpit/core/helpers.rb