burlesque 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -51,7 +51,12 @@ module Burlesque
51
51
  #
52
52
  # Returns Constant.
53
53
  def resource_class
54
- name.split('#', 2).first.pluralize.classify.constantize
54
+ model_name = name.split('#', 2).first
55
+ begin
56
+ model_name.pluralize.classify.constantize
57
+ rescue
58
+ model_name.to_sym
59
+ end
55
60
  end
56
61
 
57
62
  # Public: Entrega la accion asociada al rol.
@@ -1,3 +1,3 @@
1
1
  module Burlesque
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: burlesque
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-25 00:00:00.000000000 Z
12
+ date: 2013-07-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails