Module: TinyMCE::Rails

Defined in:
lib/tinymce/rails.rb,
lib/tinymce/rails/engine.rb,
lib/tinymce/rails/helper.rb,
lib/tinymce/rails/version.rb,
lib/tinymce/rails/configuration.rb,
lib/tinymce/rails/asset_manifest.rb,
lib/tinymce/rails/asset_installer.rb,
lib/tinymce/rails/configuration_file.rb,
lib/tinymce/rails/asset_installer/copy.rb,
lib/tinymce/rails/asset_installer/compile.rb,
lib/tinymce/rails/asset_installer/copy_no_preserve.rb

Defined Under Namespace

Modules: Environment, Helper Classes: AssetInstaller, AssetManifest, Configuration, ConfigurationFile, Engine, JsonManifest, MultipleConfiguration, NullManifest, YamlManifest

Constant Summary collapse

VERSION =
"5.1.2"
TINYMCE_VERSION =
"5.1.2"

Class Method Summary collapse

Class Method Details

.configurationObject



10
11
12
13
# File 'lib/tinymce/rails.rb', line 10

def self.configuration
  @configuration ||= ConfigurationFile.new(Engine.config_path)
  @configuration.respond_to?(:configuration) ? @configuration.configuration : @configuration
end

.configuration=(configuration) ⇒ Object



15
16
17
# File 'lib/tinymce/rails.rb', line 15

def self.configuration=(configuration)
  @configuration = configuration
end

.each_configuration(&block) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/tinymce/rails.rb', line 19

def self.each_configuration(&block)
  if configuration.is_a?(MultipleConfiguration)
    configuration.each(&block)
  else
    yield :default, configuration
  end
end