Method: Cms::EngineAwarePathBuilder#initialize

Defined in:
lib/cms/engine_helper.rb

#initialize(model_class_or_content_type_or_model) ⇒ EngineAwarePathBuilder

Returns a new instance of EngineAwarePathBuilder.



5
6
7
8
9
10
11
12
# File 'lib/cms/engine_helper.rb', line 5

def initialize(model_class_or_content_type_or_model)
  # ContentType
  if model_class_or_content_type_or_model.respond_to? :model_class
    @path_subject = model_class_or_content_type_or_model.model_class
  else # Class or Model
    @path_subject = model_class_or_content_type_or_model
  end
end