module Flex::Model

Public Class Methods

included(base) click to toggle source
# 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