lib/solidus_support/engine_extensions.rb
def enable_solidus_engine_support(engine)
        paths['app/controllers'] << "lib/controllers/#{engine}"
        paths['app/views'] << "lib/views/#{engine}"

        path = root.join("lib/decorators/#{engine}")

        config.autoload_paths += path.glob('*')

        engine_context = self
        config.to_prepare do
          engine_context.instance_eval do
            load_solidus_decorators_from(path)
          end
        end
      end
# Enables support for a Solidus engine.
#
# This will tell Rails to:
#
#   * add +lib/controllers/[engine]+ to the controller paths;
#   * add +lib/views/[engine]+ to the view paths;
#   * load the decorators in +lib/decorators/[engine]+.
#
# @see #load_solidus_decorators_from
Enables support for a Solidus engine.
This will tell Rails to.


Enables support for a Solidus engine . This will tell Rails to .
def enable_solidus_engine_support(engine)
        paths['app/controllers'] << "lib/controllers/#{engine}"
        paths['app/views'] << "lib/views/#{engine}"
        path = root.join("lib/decorators/#{engine}")
        config.autoload_paths += path.glob('*')
        engine_context = self
        config.to_prepare do
          engine_context.instance_eval do
            load_solidus_decorators_from(path)
          end
        end
      end
def enable_solidus_engine_support ( engine ) paths [ 'app/controllers' ] << "lib/controllers/#{engine}" paths [ 'app/views' ] << "lib/views/#{engine}" path = root . join ( "lib/decorators/#{engine}" ) config . autoload_paths += path . glob ( '*' ) engine_context = self config . to_prepare do engine_context . instance_eval do load_solidus_decorators_from ( path ) end end end
Enables support for a Solidus engine.
Enables support for a Solidus engine .
engine
see
None