Sha256: d51fbb9d42eaf8c4e90a663f638efc4d580cdaff8b6106123428fd86a8398e4c
Contents?: true
Size: 720 Bytes
Versions: 1
Compression:
Stored size: 720 Bytes
Contents
# -*- encoding : utf-8 -*- module Untied module Publisher class Railtie < Rails::Railtie config.after_initialize do #FIXME don't know why should I do this. ActiveRecord::Base.observers ||= [] config.active_record.observers ||= [] ActiveRecord::Base.observers << Untied::Publisher::Observer config.active_record.observers << Untied::Publisher::Observer unless File.basename($0) == 'rake' Publisher.config.logger.debug "Untied::Publisher: initializing observer" Untied::Publisher::Observer.instance end end config.to_prepare do Untied::Publisher.config.doorkeeper.new.define_callbacks end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
untied-publisher-0.0.5 | lib/untied-publisher/railtie.rb |