Sha256: d81ad0ba5247a3a692cc458e1b1d6bbd0658af4139b5bc0c64a9c63c038e0146
Contents?: true
Size: 846 Bytes
Versions: 7
Compression:
Stored size: 846 Bytes
Contents
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::Engine::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