Module: Jpmobile::ViewSelector

Defined in:
lib/jpmobile/view_selector.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


3
4
5
6
7
8
9
10
# File 'lib/jpmobile/view_selector.rb', line 3

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