Sha256: 033cd5170ef03ba9ad26857a391a7c7f5a97c11d0ca1496d6d343e6f7f372af9

Contents?: true

Size: 372 Bytes

Versions: 2

Compression:

Stored size: 372 Bytes

Contents

# frozen_string_literal: true

module Kingsman
  module Controllers
    module ScopedViews
      extend ActiveSupport::Concern

      module ClassMethods
        def scoped_views?
          defined?(@scoped_views) ? @scoped_views : Kingsman.scoped_views
        end

        def scoped_views=(value)
          @scoped_views = value
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kingsman-0.1.1 lib/kingsman/controllers/scoped_views.rb
kingsman-0.1.0 lib/kingsman/controllers/scoped_views.rb