Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

creation_report

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

creation_report

  • 0.0.9
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= CreationReport

CreationReport is an easy way to visualize how many instances of each model are being created over time. Keep in mind that it cannot keep track of rows that have been deleted.

Note: This plugin requires 'gchartrb'. The following line should go in your environment.rb file: config.gem 'gchartrb', :lib => 'google_chart'

Example

MODEL

def User < ActiveRecord::Base include CreationReport # Make sure that this is in your model

the rest of your code

end

CONTROLLER

def usage @creations_by_day_chart = User.creations_by_day_chart @creations_by_hour_chart = User.creations_by_hour_of_day_chart end

VIEW

Google Chart Google Chart

FAQs

Package last updated on 01 Jun 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc