rails_admin_charts 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3173317b0a201925dff86d07cec93089900493c2
4
- data.tar.gz: 65a39407acc0330a8025dd315b005ed3060cbed7
3
+ metadata.gz: 99b2ea505dec629e543cf69bea348e5b9f59ccbd
4
+ data.tar.gz: 4f5a18a6bd7d6c02ece330994a3ea6e54563729a
5
5
  SHA512:
6
- metadata.gz: 1fa7af9bc6248ba0e00ff4357c905338a799ae6107e084a078c92053cd8e4596338f062938496f5b539f773258be3ef5f7b7d595fb8218e73b7de68f5025573d
7
- data.tar.gz: ee91b7271539d2a0b1423cd9ca83d4ec57fc099ac9d5172029a2063b21e13fbb41cf74cd78ae68b01cc9677cb3f6b7bf9fc1fc5ad5293de80f18881643ad5f89
6
+ metadata.gz: 9518d7024400029b58a1989438ca44d2d7625901a75ac3a790d2d8abc7bd560f35ba935f98742d1c06b66da90a3aa3c3735c6b8c3f684bad2b77dc06264c40a6
7
+ data.tar.gz: aeb0a072750defd504b2d6f79e8565e68ca5258bed4040567a370118c19cf4d14cc219795be9d39df8073e08cd41b6d6a134a8d3f7adba4f8edbbdeba0805a04
data/README.md CHANGED
@@ -12,6 +12,14 @@ Run:
12
12
 
13
13
  This will include the lazy_high_charts gem and add the assets to the pipeline.
14
14
 
15
+ In your RailsAdmin initializer (`app/config/initializers/rails_admin.rb`), enable the action by adding:
16
+
17
+ ```ruby
18
+ config.actions do
19
+ charts
20
+ end
21
+ ```
22
+
15
23
  For any model where you wish to display a chart (defaults to a cumulative total showing the last 100 days), add the following just under the class declaration:
16
24
 
17
25
  ```ruby
@@ -1,3 +1,4 @@
1
+ require 'rails_admin/main_controller'
1
2
  module RailsAdmin
2
3
  class MainController < RailsAdmin::ApplicationController
3
4
  def charts
@@ -1,3 +1,3 @@
1
1
  module RailsAdminCharts
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_charts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Geraghty