Skip to content

Instantly share code, notes, and snippets.

@j-mcnally
Created April 28, 2014 21:38
Show Gist options
  • Select an option

  • Save j-mcnally/11384822 to your computer and use it in GitHub Desktop.

Select an option

Save j-mcnally/11384822 to your computer and use it in GitHub Desktop.
def self.activate
Dir.glob(File.join(File.dirname(__FILE__), '../../app/reward_cards/*.rb')) do |c|
Rails.configuration.cache_classes ? require(c) : load(c)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment