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 +4 -4
- data/config/initializers/rails_admin_charts.rb +18 -16
- data/lib/rails_admin_charts.rb +1 -0
- data/lib/rails_admin_charts/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ab3bec3e6ef8cd9acb173349d19554e0941d9ae
|
4
|
+
data.tar.gz: 710ad5c05dddbab6f3b2074b4f3f814dd8d0e2bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96bc0b24f7d6016b80d71a10211cb4ee416c0be86ada20778fc55c037a0362258358540e7b57f4abf8b54c1a03749fe548a547baa5b84e115d14da7f1c259f63
|
7
|
+
data.tar.gz: a01f81057979b78a62528b6104a459b092a46a1a8cbca4b60dbe5467bf04a8a358dece6adc40c655f0c7c491a68a57ab4decf6a53955c4d4f2744f13d9a999ce
|
@@ -1,19 +1,21 @@
|
|
1
|
-
require 'rails_admin/
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
data/lib/rails_admin_charts.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2013-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|