bootstrap_admin 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- collection_name.singularize
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
@@ -1,3 +1,3 @@
1
1
  module BootstrapAdmin
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
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: 0.0.8
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-09 00:00:00.000000000 Z
13
+ date: 2013-05-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails