Sha256: 5f260637ac487e096952814e5df1183e52f3bbe604f09516eed690df15d342f2

Contents?: true

Size: 336 Bytes

Versions: 44

Compression:

Stored size: 336 Bytes

Contents

module Ckeditor::ApplicationHelper
  def assets_pipeline_enabled?
    if Gem::Version.new(::Rails.version.to_s) >= Gem::Version.new('4.0.0')
      defined?(Sprockets::Rails)
    elsif Gem::Version.new(::Rails.version.to_s) >= Gem::Version.new('3.0.0')
      Rails.application.config.assets.enabled
    else
      false
    end
  end
end

Version data entries

44 entries across 44 versions & 5 rubygems

Version Path
glebtv-ckeditor-4.4.7.1 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.4.7 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.4.6 app/helpers/ckeditor/application_helper.rb
ckeditor-4.1.1 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.4.3.4 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.4.3.3 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.4.3.2 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.4.3.1 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.4.3.0 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.3.2.6 app/helpers/ckeditor/application_helper.rb
ckeditor-4.1.0 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.3.2.5 app/helpers/ckeditor/application_helper.rb
ckeditor-4.0.11 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.3.2.4 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.3.2.3 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.3.2.2 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.3.2.1 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.3.2.0 app/helpers/ckeditor/application_helper.rb
ckeditor-4.0.10 app/helpers/ckeditor/application_helper.rb
ckeditor-4.0.9 app/helpers/ckeditor/application_helper.rb