Module: ActsAsMessageable

Defined in:
lib/acts-as-messageable.rb,
lib/acts-as-messageable/model.rb,
lib/acts-as-messageable/scopes.rb,
lib/acts-as-messageable/rails4.rb,
lib/acts-as-messageable/rails3.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

Defined Under Namespace

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

Class Method Summary collapse

Class Method Details

.rails_apiObject



9
10
11
12
13
14
15
# File 'lib/acts-as-messageable.rb', line 9

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