You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ActiveSupport::Inflector#underscore, in addition to underscoring the input will additionally take into account known acronyms. Since this can't be done at compile time, FastUnderscore will detect when ActiveSupport is loaded and take advantage of its knowledge of acronyms while still using the native extension.
Since the #underscore method is used so much throughout the Rails boot process (for autoloading dependencies, determining table names, determining inverse associations, etc.), it's best to hook into Rails as early as possible. As such, for the best results in your Gemfile add require: false to the gem 'fast_underscore' declaration and add require 'fast_underscore' to the bottom of config/boot.rb.
Development
After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.