Sha256: 6dc3fb70b825afd317ecb1893704f7efe9d3a8b52358186afb82f9c84cc286b9

Contents?: true

Size: 578 Bytes

Versions: 7

Compression:

Stored size: 578 Bytes

Contents

require_relative 'fotoramajs/version'
require_relative 'fotoramajs/helpers'

# Used only for Ruby on Rails gem to tell, that gem contain `lib/assets`.
module Fotoramajs
  class Railtie < Rails::Railtie
    initializer 'fotorama.config' do |app|
      if Gem::Version.new(::Rails.version) >= Gem::Version.new("4.0.0")
        app.config.assets.precompile += ['fotorama.png', 'fotorama@2x.png']
      end

      ActiveSupport.on_load(:action_view) do
        include Fotoramajs::Helpers
      end
    end
  end

  module Rails
    class Engine < ::Rails::Engine
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fotoramajs-4.6.4 lib/fotoramajs.rb
fotoramajs-4.6.3.2 lib/fotoramajs.rb
fotoramajs-4.6.3.1 lib/fotoramajs.rb
fotoramajs-4.6.3 lib/fotoramajs.rb
fotoramajs-4.6.2 lib/fotoramajs.rb
fotoramajs-4.6.0 lib/fotoramajs.rb
fotoramajs-4.5.2 lib/fotoramajs.rb