bootstrap_admin 0.0.8 → 0.0.9
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.
|
@@ -55,7 +55,11 @@ module BootstrapAdmin
|
|
|
55
55
|
# =============================================================================
|
|
56
56
|
# @return [String] model name based on the controller's name
|
|
57
57
|
def model_name
|
|
58
|
-
|
|
58
|
+
if bootstrap_admin_config.model_name.blank?
|
|
59
|
+
collection_name.singularize
|
|
60
|
+
else
|
|
61
|
+
bootstrap_admin_config.model_name
|
|
62
|
+
end
|
|
59
63
|
end
|
|
60
64
|
|
|
61
65
|
# =============================================================================
|
|
@@ -34,6 +34,9 @@ module BootstrapAdmin
|
|
|
34
34
|
# Available Actions
|
|
35
35
|
attr_accessor :available_actions
|
|
36
36
|
|
|
37
|
+
# Name of the model to be used on this controller (to support namespaced models)
|
|
38
|
+
attr_accessor :model_name
|
|
39
|
+
|
|
37
40
|
# =============================================================================
|
|
38
41
|
def initialize options = {}
|
|
39
42
|
options = DEFAULTS.merge options
|
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: 0.0.
|
|
4
|
+
version: 0.0.9
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2013-05-
|
|
13
|
+
date: 2013-05-16 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rails
|