Sha256: 8ee696c1d2f49347176bd41339a8e8b8c7bb539e850268b1e6e7290aec0e6c07
Contents?: true
Size: 598 Bytes
Versions: 3
Compression:
Stored size: 598 Bytes
Contents
module ActionView class Renderer def render_template_with_meta2(context, options) config = Meta2.config resolver = context.assigns[config.assign_name] resolver.setup config.strategy, context, options render_template_without_meta2 context, options end alias_method_chain :render_template, :meta2 end end module AbstractController module Rendering def view_assigns_with_meta2 hash = view_assigns_without_meta2 hash[Meta2.config.assign_name] = Meta2::Resolver.new hash end alias_method_chain :view_assigns, :meta2 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
meta2-0.0.3 | lib/meta2/alias_method_chains.rb |
meta2-0.0.2 | lib/meta2/alias_method_chains.rb |
meta2-0.0.1 | lib/meta2/alias_method_chains.rb |