Sha256: 2ef40859c964b407ee5c7937f33a9f598b5cb79deafd2a38b83045c34dc3c115

Contents?: true

Size: 497 Bytes

Versions: 1

Compression:

Stored size: 497 Bytes

Contents

require 'emoji'
require 'rails'
require 'sprockets'

module Emoji
  class Railtie < Rails::Railtie
    initializer "emoji.defaults" do
      Emoji.asset_host = ActionController::Base.asset_host
      asset_prefix = Rails.application.config.assets.prefix rescue '/assets'
      Emoji.asset_path =  File.join(asset_prefix, '/emoji')
      Emoji.use_plaintext_alt_tags = false
    end

    rake_tasks do
      load File.absolute_path(File.dirname(__FILE__) + '/tasks/install.rake')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
emoji-1.0.7 lib/emoji/railtie.rb