Sha256: ac6e454f0d15412698906e5abc7a3dbba5ed57c332eca62cb5149e2c68e0bda3

Contents?: true

Size: 375 Bytes

Versions: 41

Compression:

Stored size: 375 Bytes

Contents

require_relative 'satisfied'

module Satis::ActiveRecordHelpers
  extend ActiveSupport::Concern

  included do
    delegate :satisfied?, to: :class
  end

  class_methods do
    def satisfied(options = {})
      @_satis_satisfied_options = options
      include Satis::Satisfied
    end

    def satisfied?
      included_modules.include?(Satis::Satisfied)
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
satis-2.1.43 lib/satis/active_record_helpers.rb
satis-2.1.42 lib/satis/active_record_helpers.rb
satis-2.1.41 lib/satis/active_record_helpers.rb
satis-2.1.40 lib/satis/active_record_helpers.rb
satis-2.1.39 lib/satis/active_record_helpers.rb
satis-2.1.38 lib/satis/active_record_helpers.rb
satis-2.1.37 lib/satis/active_record_helpers.rb
satis-2.1.36 lib/satis/active_record_helpers.rb
satis-2.1.35 lib/satis/active_record_helpers.rb
satis-2.1.33 lib/satis/active_record_helpers.rb
satis-2.1.31 lib/satis/active_record_helpers.rb
satis-2.1.30 lib/satis/active_record_helpers.rb
satis-2.1.29 lib/satis/active_record_helpers.rb
satis-2.1.28 lib/satis/active_record_helpers.rb
satis-2.1.27 lib/satis/active_record_helpers.rb
satis-2.1.26 lib/satis/active_record_helpers.rb
satis-2.1.24 lib/satis/active_record_helpers.rb
satis-2.1.23 lib/satis/active_record_helpers.rb
satis-2.1.22 lib/satis/active_record_helpers.rb
satis-2.1.21 lib/satis/active_record_helpers.rb