Sha256: ea7e84135a0e5609468052d1632280970066046210b81a3180791580008e0472

Contents?: true

Size: 293 Bytes

Versions: 1

Compression:

Stored size: 293 Bytes

Contents

# frozen_string_literal: true

require 'active_support/dependencies'

module Blocks
  module ControllerExtensions
    def blocks
      @blocks ||= Blocks.builder_class.new(view_context)
    end
  end
end

ActiveSupport.on_load(:action_controller) do
  include Blocks::ControllerExtensions
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blocks-4.0.1 lib/blocks/helpers/controller_extensions.rb