Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/poundpay/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module Poundpay
def self.configure_from_yaml(path)
pathname = Pathname.new Rails.root.join(path)
raise ArgumentError.new "File does not exist: #{pathname.to_s}" unless pathname.exist?
config = YAML::load_file(pathname)[Rails.env]
config = YAML::load(ERB.new(File.read(pathname)).result)[Rails.env]
Poundpay.configure_from_hash(config)
end
end
end
end
2 changes: 1 addition & 1 deletion spec/fixtures/poundpay.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
development:
developer_sid: DV0383d447360511e0bbac00264a09ff3c
auth_token: development_auth_token
auth_token: <%= "development_auth_token" %>
www_url: https://www-sandbox.poundpay.com
api_url: https://api-sandbox.poundpay.com

Expand Down