Sha256: 6d41961760f148edaa63d05a51ca6bbfb971608911adbbd8197e6c6eeb66bac5
Contents?: true
Size: 627 Bytes
Versions: 2
Compression:
Stored size: 627 Bytes
Contents
require 'pswp-rails/version' module PhotoSwipe class Engine < Rails::Engine # initializer 'sprockets.photoswipe', group: :all, after: 'sprockets.environment' do |app| # configure_assets app do |env| # env.precompile += %w( photoswipe.js photoswipe-ui-default.js photoswipe.scss ) # # end # end # # private # def configure_assets(app) # if config.respond_to?(:assets) && config.assets.respond_to?(:configure) # # Rails 4.x # config.assets.configure { |env| yield(env) } # else # # Rails 3.2 # yield(app.assets) # end # end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pswp-rails-4.1.1.1 | lib/pswp-rails.rb |
pswp-rails-4.1.1 | lib/pswp-rails.rb |