Sha256: 04618fec56e793b24ce9523a215952aa8a1435d2173fd974867a126607d3afb5
Contents?: true
Size: 522 Bytes
Versions: 25
Compression:
Stored size: 522 Bytes
Contents
module Elastics module Templates extend self attr_accessor :contexts @contexts = [] def self.included(context) context.class_eval do Elastics::Templates.contexts |= [context] @elastics ||= ClassProxy::Base.new(context) @elastics.extend(ClassProxy::Templates).init def self.elastics; @elastics end def self.template_methods; elastics.templates.keys end eval "extend module #{context}::ElasticsTemplateMethods; self end" end end end end
Version data entries
25 entries across 25 versions & 1 rubygems