Sha256: 7d6319d80b3c8e9f666c603d1f9817df76c0129331c10be2ff7f3f29471618f6
Contents?: true
Size: 936 Bytes
Versions: 7
Compression:
Stored size: 936 Bytes
Contents
# This file contains VersionStrategies for the Cell and Cells module for Rails >= 3.1. module Cell Layouts = AbstractController::Layouts # Methods to be included in Cell::Rails in 3.1 context. module VersionStrategy extend ActiveSupport::Concern include AbstractController::UrlFor # must be included before _routes is set in Railstie. # TODO: remove that. module ClassMethods def helper_modules [_routes.url_helpers, _routes.mounted_helpers, _helpers] end end private def process_opts_for(opts, state) opts[:action] = opts[:view] || state lookup_context.formats = [opts.delete(:format)] if opts[:format] end end end module Cells module Engines module VersionStrategy def registered_engines ::Rails.application.railties.engines end def existent_directories_for(path) path.existent_directories end end end end
Version data entries
7 entries across 7 versions & 1 rubygems