Sha256: 1aa2616196795918c15b78319029161a90224e03d2e5fbff71f255f52acdcc24
Contents?: true
Size: 424 Bytes
Versions: 23
Compression:
Stored size: 424 Bytes
Contents
def context_card @context_card || self end def with_context context_card old_context = @context_card @context_card = context_card if context_card yield ensure @context_card = old_context end format do delegate :context_card, :with_context, to: :card def contextual_content context_card, options={} view = options.delete(:view) || :core with_context(context_card) { render! view, options } end end
Version data entries
23 entries across 23 versions & 1 rubygems