Sha256: 183821de29797fbb54f397c175627d4fdf5e732714d5e3ec297fd296f5028f9d

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 KB

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 :MetaHelper,   'sharing_tags/action_view/meta_helper'
    autoload :ButtonHelper, 'sharing_tags/action_view/button_helper'
    autoload :AssetHelper,  'sharing_tags/action_view/asset_helper'
  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.7 lib/sharing_tags.rb
sharing_tags-0.0.6 lib/sharing_tags.rb
sharing_tags-0.0.5 lib/sharing_tags.rb