lib/cardio/utils.rb in card-1.101.1 vs lib/cardio/utils.rb in card-1.101.2

- old
+ new

@@ -1,7 +1,13 @@ module Cardio # Utilities that may need to be run even when mods are not loaded. module Utils + def tr key, args={} + kaller = args.delete(:caller) || caller + args[:scope] ||= Card::Set.scope kaller + ::I18n.t key, args + end + def seed_test_db system "env RAILS_ENV=test bundle exec rake db:fixtures:load" end # deletes tmp directory within files directory