Skip to content

Commit

Permalink
This method isn't sensible when module is included
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed Jul 5, 2014
1 parent 7605bfd commit 54b70a9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/adhearsion-i18n/call_controller_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def t(key, options = {})
end

unless prompt.empty?
prompt = "#{config['audio_path']}/#{this_locale}/#{prompt}"
prompt = "#{Adhearsion.config.i18n.audio_path}/#{this_locale}/#{prompt}"
end

RubySpeech::SSML.draw language: this_locale do
Expand All @@ -32,10 +32,3 @@ def locale
def locale=(l)
call[:locale] = l
end

private

def config
Adhearsion.config.i18n
end
end

0 comments on commit 54b70a9

Please sign in to comment.