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
danabr75-ckeditor-4.1.6 app/helpers/ckeditor/application_helper.rb
ckeditor-4.2.3 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.6.0 app/helpers/ckeditor/application_helper.rb
ckeditor-4.2.2 app/helpers/ckeditor/application_helper.rb
ckeditor-4.2.1 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.5.10.3 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.5.10.2 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.5.10.1 app/helpers/ckeditor/application_helper.rb
ckeditor-4.2.0 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.5.7.1 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.5.7 app/helpers/ckeditor/application_helper.rb
ckeditor_custom_controller-4.1.6 app/helpers/ckeditor/application_helper.rb
ckeditor-4.1.6 app/helpers/ckeditor/application_helper.rb
ckeditor-4.1.5 app/helpers/ckeditor/application_helper.rb
ckeditor-4.1.4 app/helpers/ckeditor/application_helper.rb
ckeditor-4.1.3 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.4.7.4 app/helpers/ckeditor/application_helper.rb
ckeditor-4.1.2 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.4.7.3 app/helpers/ckeditor/application_helper.rb
glebtv-ckeditor-4.4.7.2 app/helpers/ckeditor/application_helper.rb