lib/multiview/manager.rb in multiview-0.1.0 vs lib/multiview/manager.rb in multiview-0.1.1

- old
+ new

@@ -3,11 +3,11 @@ attr_reader :versions_map # Params: # config: {controller_path: version def initialize(versions_map) - @versions_map = versions_map + @versions_map = versions_map.symbolize_keys end def dispatch(env, controller_path, action_name, version = nil) version ||= find_version(controller_path) return if version.nil? @@ -55,8 +55,7 @@ def load_version_view(controller, version) return if version.to_sym == :v1 Rails.logger.warn("[Multiview] Prepend view path app/views/#{version}") controller.prepend_view_path(Rails.root.join("app/views/#{version}")) end - end end