Sha256: 2400262a561123190dc0e8ae710957ad7c61f30d4b3393b0d779c5655a7eb0d5
Contents?: true
Size: 481 Bytes
Versions: 43
Compression:
Stored size: 481 Bytes
Contents
ActionController::Base.class_eval do before_filter do append_view_path Dryml::Railtie::PageTagResolver.new(self) end attr_accessor :dryml_fallback_tag def dryml_context @this end def call_dryml_tag(tag, options={}) # TODO: Figure out what this bit is all about :-) if options[:with] @this = options[:with] unless options[:field] else options[:with] = dryml_context end Dryml.render_tag(view_context, tag, options) end end
Version data entries
43 entries across 43 versions & 1 rubygems