Module: Jpmobile::ViewSelector

Defined in:
lib/jpmobile/rails.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


45
46
47
48
49
50
51
52
# File 'lib/jpmobile/rails.rb', line 45

def self.included(base)
  base.class_eval do
    before_action :register_mobile

    self._view_paths = self._view_paths.dup
    self.view_paths.unshift(*self.view_paths.map {|resolver| Jpmobile::Resolver.new(resolver.to_path) })
  end
end