daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest Nov 23rd, 2017 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def self.perform(subscription)
  2.     Noun.new
  3.     require Rails.root.join("app","models","noun","twitter","user")
  4.     require Rails.root.join("app","models","noun","dropbox","file")
  5.     # debugger
  6.     begin
  7.       subscription = Hashie::Mash.new subscription.attributes # This fix was needed with this version of Mongoid, was throwing an "each_pair" error...
  8.     rescue
  9.       subscription = Hashie::Mash.new subscription # This fix was needed with this version of Mongoid, was throwing an "each_pair" error...
  10.     end
  11.     puts "Gather #{subscription.app_id} connections"
RAW Paste Data
Top