Sha256: 31687518fdf91ae56c2aea1b19a849d6c11d9b0274e26a2a135f5206fbd970c4

Contents?: true

Size: 404 Bytes

Versions: 7

Compression:

Stored size: 404 Bytes

Contents

module Scenic
  module Generators
    # @api private
    module Materializable
      extend ActiveSupport::Concern

      included do
        class_option :materialized,
          type: :boolean,
          required: false,
          desc: "Makes the view materialized",
          default: false
      end

      private

      def materialized?
        options[:materialized]
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
scenic-1.4.1 lib/generators/scenic/materializable.rb
scenic-1.4.0 lib/generators/scenic/materializable.rb
scenic-1.3.0 lib/generators/scenic/materializable.rb
scenic-1.2.0 lib/generators/scenic/materializable.rb
scenic-1.1.1 lib/generators/scenic/materializable.rb
scenic-1.1.0 lib/generators/scenic/materializable.rb
scenic-1.0.0 lib/generators/scenic/materializable.rb