Sha256: 129257c518cd3120f0d8653a5edaa481f9acf94481709728d6835cc1baecc0df
Contents?: true
Size: 553 Bytes
Versions: 7
Compression:
Stored size: 553 Bytes
Contents
# frozen_string_literal: true require_relative '../../app/helpers/ama_layout_partial_helper' module AmaLayout class AmaLayoutView < ActionView::Base include AmaLayoutPartialHelper attr_accessor :view_data def initialize(args) self.view_data = args[:view_data] controller = view_data.try(:controller) || ::ApplicationController.new context = controller.view_paths super(context, {}, controller) end def method_missing(method, *args, &block) view_data.send(method, *args, &block) end end end
Version data entries
7 entries across 7 versions & 1 rubygems