Class: TinyMCE::Rails::MultipleConfiguration

Inherits:
ActiveSupport::HashWithIndifferentAccess
  • Object
show all
Defined in:
lib/tinymce/rails/configuration.rb

Instance Method Summary collapse

Constructor Details

#initialize(configurations = {}) ⇒ MultipleConfiguration

Returns a new instance of MultipleConfiguration.



149
150
151
152
153
154
155
# File 'lib/tinymce/rails/configuration.rb', line 149

def initialize(configurations={})
  configurations = configurations.each_with_object({}) { |(name, options), h|
    h[name] = Configuration.new_with_defaults(options)
  }

  super(configurations)
end