Sha256: f93fbc8fcdb4a96594faa1be2baac5e5b66a7cefe9c2b50a961423653335c0b4

Contents?: true

Size: 316 Bytes

Versions: 4

Compression:

Stored size: 316 Bytes

Contents

module Gamification::ActiveRecord
  module Extensions
    def rewarding
      include Gamification::Concerns::Rewarding
    end

    def rewardable
      include Gamification::Concerns::Rewardable
    end
  end
end

::ActiveRecord::Base.send :extend, Gamification::ActiveRecord::Extensions if defined?(ActiveRecord)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gamification-1.0.3 lib/gamification/activerecord.rb
gamification-1.0.2 lib/gamification/activerecord.rb
gamification-1.0.1 lib/gamification/activerecord.rb
gamification-1.0.0 lib/gamification/activerecord.rb