Sha256: 6a80218b172f35f6ea840fe76accfcbe47e9b125d536088e1e71959001074afe

Contents?: true

Size: 291 Bytes

Versions: 4

Compression:

Stored size: 291 Bytes

Contents

require_relative "inertia_rails"

module InertiaRails
  module Controller
    extend ActiveSupport::Concern

    module ClassMethods
      def inertia_share(**args, &block)
        InertiaRails.share(args) if args
        InertiaRails.share_block(block) if block
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
inertia_rails-1.2.0 lib/inertia_rails/controller.rb
inertia_rails-1.1.0 lib/inertia_rails/controller.rb
inertia_rails-1.0.1 lib/inertia_rails/controller.rb
inertia_rails-1.0.0 lib/inertia_rails/controller.rb