Sha256: 2d527009f5c4147a8700c2e03e8dfea767334a00fa2824a91dc3ea0756948928
Contents?: true
Size: 318 Bytes
Versions: 3
Compression:
Stored size: 318 Bytes
Contents
module ViewContextFrill include Frill def self.frill? object, context object.class_eval do define_method :helpers do @frill_helper ||= context.respond_to?(:view_context) ? context.view_context : context end define_method :h do helpers end end false end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
frill-0.1.16 | app/frills/view_context_frill.rb |
frill-0.1.15 | app/frills/view_context_frill.rb |
frill-0.1.14 | app/frills/view_context_frill.rb |