require 'logger' require 'multi_json' require 'active_support/all' module Rpush def self.attr_accessible_available? require 'rails' rescue LoadError false else ::Rails::VERSION::STRING < '4' || defined?(::ActiveRecord::MassAssignmentSecurity) end end require 'rpush/version' require 'rpush/cli' require 'rpush/deprecation' require 'rpush/deprecatable' require 'rpush/logger' require 'rpush/multi_json_helper' require 'rpush/configuration' require 'rpush/reflection_collection' require 'rpush/reflection_public_methods' require 'rpush/reflectable' require 'rpush/plugin' require 'rpush/embed' require 'rpush/push' require 'rpush/apns_feedback' module Rpush def self.jruby? defined? JRUBY_VERSION end def self.logger @logger ||= Logger.new end def self.root require 'rails' Rails.root || Dir.pwd rescue LoadError Dir.pwd end class << self attr_writer :logger end end