Sha256: bf87553a90a684a9f37f3d67018174d3de6a040007032a20e73c7c368d357140

Contents?: true

Size: 940 Bytes

Versions: 3

Compression:

Stored size: 940 Bytes

Contents

require "sharing_tags/engine"

module SharingTags

  #extend ActiveSupport::Autoload

  autoload :VERSION,        'sharing_tags/version'
  autoload :Config,         'sharing_tags/config'
  autoload :Configuration,  'sharing_tags/configuration'
  autoload :Network,        'sharing_tags/network'
  autoload :Context,        'sharing_tags/context'


  module ActionView
    autoload :Helpers, 'sharing_tags/action_view/helpers'
  end

  module ActionController
    autoload :Helpers, 'sharing_tags/action_controller/helpers'
    autoload :Filters, 'sharing_tags/action_controller/filters'
  end

  def configure(&block)
    config.clear! # cleanup config before calling configure
    config.instance_exec(&block)
  end
  module_function :configure

  def config
    @config ||= Configuration.new
  end
  module_function :config

end

require 'sharing_tags/railtie' if defined?(Rails::Railtie)
require 'sharing_tags/engine' if defined?(Rails)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sharing_tags-0.0.4 lib/sharing_tags.rb
sharing_tags-0.0.3 lib/sharing_tags.rb
sharing_tags-0.0.2 lib/sharing_tags.rb