Sha256: a30e6bd758be13f90b79488e632ba22355d58da967dad784f0833ac09667aaef

Contents?: true

Size: 347 Bytes

Versions: 15

Compression:

Stored size: 347 Bytes

Contents

module ReportsKit
  module Model
    extend ActiveSupport::Concern

    included do
      class << self
        attr_accessor :reports_kit_configuration
      end

      def self.reports_kit(&block)
        self.reports_kit_configuration = ModelConfiguration.new
        reports_kit_configuration.instance_eval(&block)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
reports_kit-0.7.1 lib/reports_kit/model.rb
reports_kit-0.7.0 lib/reports_kit/model.rb
reports_kit-0.5.0 lib/reports_kit/model.rb
reports_kit-0.4.1 lib/reports_kit/model.rb
reports_kit-0.4.0 lib/reports_kit/model.rb
reports_kit-0.3.3 lib/reports_kit/model.rb
reports_kit-0.3.2 lib/reports_kit/model.rb
reports_kit-0.3.1 lib/reports_kit/model.rb
reports_kit-0.3.0 lib/reports_kit/model.rb
reports_kit-0.2.0 lib/reports_kit/model.rb
reports_kit-0.1.0 lib/reports_kit/model.rb
reports_kit-0.0.4 lib/reports_kit/model.rb
reports_kit-0.0.3 lib/reports_kit/model.rb
reports_kit-0.0.2 lib/reports_kit/model.rb
reports_kit-0.0.1 lib/reports_kit/model.rb