PrettyAssociationInspect
モデルで定義されたメソッド、関連、バリデーションを コンソール上で美しく表示します。
Installation
gem 'pretty_association_inspect'
And then execute:
$ bundle
Or install it yourself as:
$ gem install pretty_association_inspect
Usage
すべてのモデルでPrettyAssociationInspectのメソッドを呼べるようにする
a
メソッド、関連、バリデーションを表示する
User.to
関連を、4モデル先まで表示する(デフォルトは1モデル先)
User.toto 4
カラムのカラムの部分一致検索
User.s "小野寺"
カラムのカラムの完全一致検索
User.ss "小野寺"
License
The gem is available as open source under the terms of the MIT License.