ixtlan-core 0.7.0 → 0.7.1

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.
@@ -38,18 +38,18 @@ module Ixtlan
38
38
  if @model_name
39
39
  @model = @model_name.constantize
40
40
  else
41
- @model = ::Configuration
41
+ @model = (::Configuration rescue nil)
42
42
  end
43
- @model.send :include, Module unless @model.respond_to? :clear_instance
43
+ @model.send :include, Module unless @model.respond_to? :clear_instance if @model
44
44
  end
45
45
  @model
46
46
  end
47
47
 
48
48
  public
49
49
 
50
- def setup(model)
51
- if model
52
- @model_name = model.to_s.classify
50
+ def setup(model_name)
51
+ if model_name
52
+ @model_name = model_name.to_s.classify
53
53
  end
54
54
  end
55
55
 
@@ -60,7 +60,7 @@ module Ixtlan
60
60
  end
61
61
 
62
62
  def cleanup
63
- model.clear_instance
63
+ model.clear_instance if @model
64
64
  end
65
65
 
66
66
  def configure
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ixtlan-core
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.7.0
5
+ version: 0.7.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - mkristian
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-11-04 00:00:00 +05:30
13
+ date: 2011-11-07 00:00:00 +05:30
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency