Sha256: f7b235de484e5298fc60187796111ae863dfe080186a30e7148464e97a185cf4

Contents?: true

Size: 400 Bytes

Versions: 6

Compression:

Stored size: 400 Bytes

Contents

require 'emotions'
require 'rails'

module Emotions
  class Railtie < Rails::Railtie
    initializer "emotions.active_record" do |app|
      ActiveSupport.on_load :active_record do
        def self.acts_as_emotive
          self.send :include, Emotions::Emotive
        end

        def self.acts_as_emotional
          self.send :include, Emotions::Emotional
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
emotions-0.1.6 lib/emotions/railtie.rb
emotions-0.1.5 lib/emotions/railtie.rb
emotions-0.1.4 lib/emotions/railtie.rb
emotions-0.1.3 lib/emotions/railtie.rb
emotions-0.1.2 lib/emotions/railtie.rb
emotions-0.1.1 lib/emotions/railtie.rb