Sha256: c96e46f12656621dad2bb1f8da935a689d094d8c585a2f351e2205d373ee5cc7
Contents?: true
Size: 514 Bytes
Versions: 2
Compression:
Stored size: 514 Bytes
Contents
module Dryml class Railtie class PageTagResolver < ActionView::Resolver def initialize(controller) @controller = controller super() end def find_templates(name, prefix, partial, details) tag_name = @dryml_fallback_tag || name.dasherize + '-page' text = @controller.call_dryml_tag(tag_name) return [] unless text [ActionView::Template.new(text, "dryml-tag:#{tag_name}", Dryml::Railtie::PageTagHandler, details)] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dryml-1.3.0.pre11 | lib/dryml/railtie/page_tag_resolver.rb |
dryml-1.3.0.pre10 | lib/dryml/railtie/page_tag_resolver.rb |