%i(foo bar).map_chain('to_s.to_sym') #=> %i(foo bar).map(&:to_s).map(&:to_sym)
If you use with ORM, ODM and so on, please be careful to N+1 query problem.
Add these lines to your application's Gemfile:
gem 'map_chain'
And then execute:
$ bundle
Or install it yourself as:
$ gem install map_chain
And require it as:
require 'map_chain'
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
map_chain is released under the MIT License.