Method_missing not picking my internet method

Skip to first unread message

Joseph Rex

Sep 6, 2016, 10:58:48 AM9/6/16
to Ruby Faker
I added a new set under internet in locales/en.yml then in faker/internet.rb I created a method with the same name as the key in en.yml and used fetch like this:

when that was still returning undefined method each time I tried to call Faker::Internet.new_set I wrapped it in a with_locale(:en) block and it still gives method undefined. The fetch method says all I should have to do is just create it in the locale file which I did already. When I use

it works as expected. How can I make this method available as Faker::Internet.new_set
Reply all
Reply to author
0 new messages