appprova / custom_words

MIT License
1 stars 1 forks source link

Use it as view and controller helper. #3

Closed martinstiago closed 6 years ago

martinstiago commented 9 years ago

Your gem is just awesome, but I wish to use it on my javascrits and controllers. Can you help me out?

jdanielnd commented 9 years ago

We're not requiring the module for now. So you can only do this by calling the class method, using:

CustomWords::CustomWords.fetch_word(:your_custom_text)

But it's a good feedback! If you have an idea how to work on that, feel free to submit a PR :)