Module: Blueprints::Extensions::Extendable

Included in:
Blueprintable, DynamicSaveable, Saveable, SoftSaveable
Defined in:
lib/blueprints/extensions.rb

Overview

Here to support ActiveSupport 2.x. Will be removed once support for ActiveRecord 2.3 is terminated.

Class Method Summary collapse

Class Method Details

.included(mod) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/blueprints/extensions.rb', line 4

def self.included(mod)
  if defined?(ActiveSupport::Concern)
    mod.extend ActiveSupport::Concern
  else
    def mod.included(mod)
      mod.extend Blueprints::Extensions::Blueprintable::ClassMethods
    end
  end
end