Sha256: 5af119fdba489e4d6398c0175f8ebe3260e00ce49d4407fccf76487052dd9a15
Contents?: true
Size: 594 Bytes
Versions: 2
Compression:
Stored size: 594 Bytes
Contents
ActionController::Base.class_eval do before_filter do append_view_path Dryml::Railtie::PageTagResolver.new(self) end # dryml does not use layouts def action_has_layout? false end def dryml_context @this end def dryml_fallback_tag(tag_name) @dryml_fallback_tag = tag_name 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dryml-1.3.0.pre11 | lib/dryml/extensions/action_controller/dryml_methods.rb |
dryml-1.3.0.pre10 | lib/dryml/extensions/action_controller/dryml_methods.rb |