A log viewer for Solidus
Makes it easy for admin to view logs. Logs are anything in the log_entries table.
Currently only the payment model uses it, but the LogEntry is polymorphic so it will work with any other model
NOTE: app/views/admin/payments/_list.html.erb is overwritten by this gem
Add solidus_log_viewer to your Gemfile:
gem 'solidus_log_viewer'
Bundle your dependencies and run the installation generator:
bundle
bundle exec rails g solidus_log_viewer:install
You will get the following route:
admin_log_entries_path
You can optionally pass filters:
admin_log_entries_path(:source_type => 'Payment', :source_id => @payment.id)
First bundle your dependencies, then run rake
. rake
will default to building the dummy app if it does not exist, then it will run specs, and Rubocop static code analysis. The dummy app can be regenerated by using rake test_app
.
bundle
bundle exec rake
When testing your application's integration with this extension you may use its factories. Simply add this require statement to your spec_helper:
require 'solidus_log_viewer/factories'
Your new extension version can be released using gem-release
like this:
bundle exec gem bump -v VERSION --tag --push --remote upstream && gem release
Copyright (c) 2011 Dynamo Design Studio, released under the New BSD License