rails_admin_charts 0.0.9 → 0.0.11

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: db0b3e972b9cfcab8a3b6f33ad7b2539774dfd8f
4
- data.tar.gz: 67db7414135137a4ef09611433d14bae39d2a5da
3
+ metadata.gz: 8ab3bec3e6ef8cd9acb173349d19554e0941d9ae
4
+ data.tar.gz: 710ad5c05dddbab6f3b2074b4f3f814dd8d0e2bc
5
5
  SHA512:
6
- metadata.gz: a4b3dc2e3dccbe0a776c5b33920f7d2c1aad5fd2818bc0c426d174a7668ca7c3e2276c782722adb5f49fd9a679bc58d59789514916e52f994a36e306ad2ad80d
7
- data.tar.gz: 811669e9900a626f72d42e0baad0d576d2cf4f5bc75439b931b2be20b7c9759caebb6b3601d59ba8eaadb4c4bbe079fd873d0666ac4b360ee59645cbe82104c8
6
+ metadata.gz: 96bc0b24f7d6016b80d71a10211cb4ee416c0be86ada20778fc55c037a0362258358540e7b57f4abf8b54c1a03749fe548a547baa5b84e115d14da7f1c259f63
7
+ data.tar.gz: a01f81057979b78a62528b6104a459b092a46a1a8cbca4b60dbe5467bf04a8a358dece6adc40c655f0c7c491a68a57ab4decf6a53955c4d4f2744f13d9a999ce
@@ -1,19 +1,21 @@
1
- require 'rails_admin/main_controller'
2
- module RailsAdmin
3
- class MainController < RailsAdmin::ApplicationController
4
- def charts
5
- get_model
6
- #get_object
7
- action = RailsAdmin::Config::Actions.find(:charts)
8
- #@authorization_adapter.try(:authorize, action.authorization_key, @abstract_model, @object)
9
- @action = action.with({controller: self, abstract_model: @abstract_model})
10
- @page_name = wording_for(:title)
11
- #
12
- #if request.get?
13
- #elsif request.post?
14
- #end
15
- #redirect_to back_or_index
1
+ require 'rails_admin/version'
2
+ if Gem::Version.new(RailsAdmin::Version.to_s) < Gem::Version.new('0.6.0')
3
+ require 'rails_admin/main_controller'
4
+ module RailsAdmin
5
+ class MainController < RailsAdmin::ApplicationController
6
+ def charts
7
+ get_model
8
+ #get_object
9
+ action = RailsAdmin::Config::Actions.find(:charts)
10
+ #@authorization_adapter.try(:authorize, action.authorization_key, @abstract_model, @object)
11
+ @action = action.with({controller: self, abstract_model: @abstract_model})
12
+ @page_name = wording_for(:title)
13
+ #
14
+ #if request.get?
15
+ #elsif request.post?
16
+ #end
17
+ #redirect_to back_or_index
18
+ end
16
19
  end
17
20
  end
18
-
19
21
  end
@@ -31,4 +31,5 @@ module RailsAdminCharts
31
31
  end
32
32
  end
33
33
 
34
+ #require 'rails_admin/config/actions'
34
35
  require 'rails_admin_charts/rails_admin/config/actions/charts'
@@ -1,3 +1,3 @@
1
1
  module RailsAdminCharts
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.11'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_charts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Geraghty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-24 00:00:00.000000000 Z
11
+ date: 2013-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails