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