bootstrap_admin 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c5a7149bdccd86b79ae1b9d28b8120328f2297a
4
- data.tar.gz: fa6ed728a44b1ace28761610fe369416d0f44d2f
3
+ metadata.gz: b74aa8d481347b41280729201941a16e6c817231
4
+ data.tar.gz: 88bdd253c0e7afd53d3e4dc281e0cf0552d50ead
5
5
  SHA512:
6
- metadata.gz: ef09e63d8c141c469ba603337a66fdbde4d081eb47f57c4b720e2273eadf8399b5e17df16d5f5a549c546d3563411fb5ef57d70ed0d9bd9ae7b20162627d4490
7
- data.tar.gz: a300ec7519b19bc2d5722abdb69673dd09d3ff2e464a611a821f5936dbd396479cec94d86a806024a2c05f90e69b267ac70d89a9565993ccc173fe18b1c492f1
6
+ metadata.gz: cf870b6404cdb97ddfa674759151675f81e31fe308289b7f5bea2c2047219f62005d04398326b0b597c3937adc8aad6664e071875988a8cc23b98eeabf57af37
7
+ data.tar.gz: 01b6464bd554fc51c59c63cc77d75bba4a806ebfecb12b98a563b75bd7f2cc0580a7754f3afe6feb38689dcf9afc03a5af875312e809678f598f07c9f0fbd8b1
@@ -1,5 +1,5 @@
1
1
  //= require jquery
2
2
  //= require jquery_ujs
3
- //= require bootstrap
3
+ //= require bootstrap-2.3.2.min
4
4
  //= require jquery-ui-1.9.2.custom.min
5
5
  //= require_tree './bootstrap_admin'
@@ -1,6 +1,6 @@
1
1
  /*
2
- *= require bootstrap
3
- *= require bootstrap_overrides
2
+ *= require bootstrap-2.3.2.min
3
+ *= require bootstrap_overrides-2.3.2
4
4
  *= require jquery-ui-1.9.2.custom
5
5
  *= require_self
6
6
  *= require_tree .
@@ -61,13 +61,14 @@ module BootstrapAdmin
61
61
 
62
62
  # =============================================================================
63
63
  def resource_count resource
64
- values = resource.includes_values
65
- to_remove = resource.reflect_on_all_associations.select{|a| a.options[:polymorphic]}.map &:name
66
- resource.includes_values -= to_remove
67
- count = resource.count
68
- resource.includes_values = values
64
+ dupped_resource = resource.dup
69
65
 
70
- return count
66
+ to_remove = dupped_resource.reflect_on_all_associations
67
+ .select{|a| a.options[:polymorphic]}
68
+ .map &:name
69
+ dupped_resource.includes_values -= to_remove
70
+
71
+ return dupped_resource.count
71
72
  end
72
73
 
73
74
  # =============================================================================
@@ -13,7 +13,7 @@ module ActionDispatch::Routing
13
13
  BootstrapAdmin.admin_namespace = admin_namespace
14
14
 
15
15
  root_options = BootstrapAdmin.admin_root_options.
16
- merge({:to => admin_namespace.to_s}).
16
+ merge({:controller => admin_namespace.to_s}).
17
17
  merge(options)
18
18
  resource admin_namespace, root_options
19
19
 
@@ -1,3 +1,3 @@
1
1
  module BootstrapAdmin
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivo Jesus
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-19 00:00:00.000000000 Z
12
+ date: 2015-08-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -115,7 +115,7 @@ files:
115
115
  - app/assets/javascripts/bootstrap_admin/bootstrap_admin.js.coffee
116
116
  - app/assets/stylesheets/_backgrounds.scss
117
117
  - app/assets/stylesheets/bootstrap_admin.css
118
- - app/assets/stylesheets/bootstrap_overrides.css.scss
118
+ - app/assets/stylesheets/bootstrap_overrides-2.3.2.css.scss
119
119
  - app/helpers/bootstrap_admin/menu_helper.rb
120
120
  - app/helpers/bootstrap_admin/paginator_helper.rb
121
121
  - app/helpers/bootstrap_admin_helper.rb
@@ -167,13 +167,13 @@ files:
167
167
  - vendor/assets/images/jqueryui/ui-icons_454545_256x240.png
168
168
  - vendor/assets/images/jqueryui/ui-icons_888888_256x240.png
169
169
  - vendor/assets/images/jqueryui/ui-icons_cd0a0a_256x240.png
170
- - vendor/assets/javascripts/bootstrap.js
171
- - vendor/assets/javascripts/bootstrap.min.js
170
+ - vendor/assets/javascripts/bootstrap-2.3.2.js
171
+ - vendor/assets/javascripts/bootstrap-2.3.2.min.js
172
172
  - vendor/assets/javascripts/jquery-ui-1.9.2.custom.min.js
173
- - vendor/assets/stylesheets/bootstrap-responsive.css
174
- - vendor/assets/stylesheets/bootstrap-responsive.min.css
175
- - vendor/assets/stylesheets/bootstrap.css
176
- - vendor/assets/stylesheets/bootstrap.min.css
173
+ - vendor/assets/stylesheets/bootstrap-2.3.2.css
174
+ - vendor/assets/stylesheets/bootstrap-2.3.2.min.css
175
+ - vendor/assets/stylesheets/bootstrap-responsive-2.3.2.css
176
+ - vendor/assets/stylesheets/bootstrap-responsive-2.3.2.min.css
177
177
  - vendor/assets/stylesheets/jquery-ui-1.9.2.custom.css
178
178
  homepage: https://github.com/LynxEyes/bootstrap_admin
179
179
  licenses: []
@@ -199,3 +199,4 @@ signing_key:
199
199
  specification_version: 4
200
200
  summary: Small lib to create standard admin sections.
201
201
  test_files: []
202
+ has_rdoc: