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.



154
155
156
157
158
159
160
# File 'lib/tinymce/rails/configuration.rb', line 154

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

  super(configurations)
end