Module: Flex::Model

Defined in:
lib/flex/deprecation.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



131
132
133
134
135
136
137
138
# File 'lib/flex/deprecation.rb', line 131

def self.included(base)
  if defined?(Flex::ModelIndexer)
    Deprecation.warn 'Flex::Model', 'Flex::ModelIndexer'
    base.send :include, Flex::ModelIndexer
  else
    raise NotImplementedError,  %(Flex does not include "Flex::Model" anymore. Please, require the "flex-models" gem, and include "Flex::ModelIndexer" instead.)
  end
end