Sha256: 576e3cb38ea9c6f877420e97fbd2ad417b0ae4af199d775e75dd9f9021f514c3
Contents?: true
Size: 466 Bytes
Versions: 1
Compression:
Stored size: 466 Bytes
Contents
module Jpmobile class Resolver < ::ActionView::FileSystemResolver EXTENSIONS = [:locale, :formats, :handlers, :mobile].freeze DEFAULT_PATTERN = ':prefix/:action{_:mobile,}{.:locale,}{.:formats,}{+:variants,}{.:handlers,}'.freeze def initialize(path, pattern = nil) raise ArgumentError, 'path already is a Resolver class' if path.is_a?(Resolver) super @pattern = DEFAULT_PATTERN @path = File.expand_path(path) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jpmobile-6.0.0.beta | lib/jpmobile/resolver.rb |