Module: ActsAsMessageable

Extended by:
T::Sig
Defined in:
lib/acts_as_messageable/model.rb,
lib/acts_as_messageable.rb,
lib/acts_as_messageable/rails3.rb,
lib/acts_as_messageable/rails4.rb,
lib/acts_as_messageable/rails6.rb,
lib/acts_as_messageable/scopes.rb,
lib/acts_as_messageable/message.rb,
lib/acts_as_messageable/railtie.rb,
lib/acts_as_messageable/relation.rb,
lib/generators/acts_as_messageable/migration/migration_generator.rb

Overview

typed: true frozen_string_literal: true

Defined Under Namespace

Modules: Model, Relation, Scopes Classes: Message, MigrationGenerator, Rails3, Rails4, Rails6, Railtie

Class Method Summary collapse

Class Method Details

.rails_apiObject



30
31
32
33
34
35
36
37
38
# File 'lib/acts_as_messageable.rb', line 30

def self.rails_api
  if Rails::VERSION::MAJOR >= 6
    Rails6
  elsif Rails::VERSION::MAJOR >= 4
    Rails4
  else
    Rails3
  end
end