Sha256: 2cebdc7c265136960ea95d0929f3efa82bd5d1911a8b4e4552ebcc336e9605e5

Contents?: true

Size: 459 Bytes

Versions: 4

Compression:

Stored size: 459 Bytes

Contents

require 'gritter/helpers'
require 'gritter/gflash'
require 'gritter/engine'
require 'fileutils'

module Gritter
  def self.initialize
    return if @initialized
    raise "ActionController is not available yet." unless defined?(ActionController)
    ActionController::Base.send(:helper, Gritter::Helpers)
    ActionController::Base.send(:include, Gritter::Gflash)
    @initialized = true
  end
end

if defined?(Rails::Railtie)
  require 'gritter/railtie'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gritter-1.0.3 lib/gritter.rb
gritter-1.0.2 lib/gritter.rb
gritter-1.0.1 lib/gritter.rb
gritter-1.0.0 lib/gritter.rb