WcMonitor

WcMonitor is Wastefull Column Monitor

  PostController < AController
    after_action :logger_wc_monitoring_result

    def show
      @post = Post.first
    end
  end

  posts/show.html.erb

  <%= @post.name %>


  -> /log/wc_monitor.log

  Post#show
    Post ['id', 'description', 'created_at', 'updated_at']

Installation

Add this line to your application's Gemfile:

group :development do
  gem 'wc_monitor'
end

And then execute:

$ bundle

Or install it yourself as:

$ gem install wc_monitor

Usage

SampleController < ApplicationController
  after_action :logger_wc_monitoring_result
end

License

The gem is available as open source under the terms of the MIT License.