Skip to content

Commit

Permalink
Problem with Rails 4.1.14.1 and 4.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
demonodojo committed Feb 18, 2016
1 parent 08781e2 commit b874865
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/mobylette/resolvers/chained_fallback_resolver.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require 'action_view'
require 'action_view/template/resolver'

module Mobylette
module Resolvers
class ChainedFallbackResolver < ::ActionView::FileSystemResolver
Expand Down Expand Up @@ -39,13 +42,13 @@ def replace_fallback_formats_chain(formats)
# Private: finds the right template on the filesystem,
# using fallback if needed
#
def find_templates(name, prefix, partial, details)
def find_templates(name, prefix, partial, details, other=false)
# checks if the format has a fallback chain
if @fallback_formats.has_key?(details[:formats].first)
details = details.dup
details[:formats] = Array.wrap(@fallback_formats[details[:formats].first])
end
super(name, prefix, partial, details)
super(name, prefix, partial, details,other)
end

# Helper for building query glob string based on resolver's pattern.
Expand Down

0 comments on commit b874865

Please sign in to comment.