lib/pxpay/init.rb in pxpay-0.1.2 vs lib/pxpay/init.rb in pxpay-0.1.3

- old
+ new

@@ -1,4 +1,8 @@ -PXPAY_CONFIG = YAML.load_file("#{Rails.root}/config/pxpay.yml")[Rails.env] +if File.exists?("#{Rails.root}/config/pxpay.yml") + PXPAY_CONFIG = YAML.load_file("#{Rails.root}/config/pxpay.yml")[Rails.env] +else + print "Please run rails generate pxpay:install to generate a pxpay config file" +end \ No newline at end of file