Guest User

Untitled

a guest
Nov 23rd, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  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"
Add Comment
Please, Sign In to add comment