Sha256: e8ee1b8c308f0e9701e36cb99ebc3f85e0fbbd3926a1f522f86184c641782695

Contents?: true

Size: 317 Bytes

Versions: 3

Compression:

Stored size: 317 Bytes

Contents

require 'active_support'
require 'active_support/core_ext'
require 'active_model'
require 'steady_state/attribute'

module SteadyState
  extend ActiveSupport::Concern

  def self.active_record?(klass)
    defined?(ActiveRecord::Base) && klass < ActiveRecord::Base
  end

  included do
    include Attribute
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
steady_state-1.0.0 lib/steady_state.rb
steady_state-0.1.0 lib/steady_state.rb
steady_state-0.0.1 lib/steady_state.rb