Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save justindthomas/2821214 to your computer and use it in GitHub Desktop.

Select an option

Save justindthomas/2821214 to your computer and use it in GitHub Desktop.
Engine Question
Scrypto.owner_class = "Person"
def scrypto_id
Scrypto.owner_id = current_user.person.id
end
require "scrypto/engine"
require "active_support/dependencies"
module Scrypto
mattr_accessor :app_root
mattr_accessor :owner_class
mattr_accessor :owner_id
def self.setup
yield self
end
end
@loveybot
Copy link
Copy Markdown

Yay Ruby!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment