CustomReport
Create and view custom reports
Installation
Add this line to your application's Gemfile:
gem 'custom_report'
And then execute:
$ bundle
Or install it yourself as:
$ gem install custom_report
Database migration
$ rails generate custom_report
$ rake db:migrate
Usage
In config/initializers/custom_report.rb
CustomReport.layout = "admin_bootstrap"
CustomReport.includes = AuthenticatedAdminSystem
CustomReport.admin_class = "Administrator"
CustomReport.before_filters = [:authenticate_or_request_admin]
In your routes
mount CustomReport::Engine => "/custom_report"
This creates the path
/custom_report/reports
Contributing
- 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