Installation
Add this line to your application's Gemfile:
gem 'activerecord_lite'
And then execute:
$ bundle
Or install it yourself as:
$ gem install activerecord_lite
Usage
(ActiveRecord Query).fetch_lite(:attribute1, :attribute2, ...)
(ActiveRecord Query).fetch_lite(attribute1: :name, attribute2: value)
Ex:
Account.where(status: 1).fetch_lite(:name, :code)
Account.where(status: 1).fetch_lite(name: :account_name, code: :account_code)