orange 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,11 +9,13 @@ module Orange::Middleware
9
9
  site = OrangeSite.first(:url.like => url)
10
10
  if site
11
11
  packet['site'] = site
12
- else
12
+ elsif orange.options[:development_mode]
13
13
  s = OrangeSite.new({:url => packet['route.site_url'],
14
14
  :name => 'An Orange Site'})
15
15
  s.save
16
16
  packet['site'] = s
17
+ else
18
+ packet['site'] = OrangeSite.first
17
19
  end
18
20
  pass packet
19
21
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 4
9
- version: 0.3.4
8
+ - 5
9
+ version: 0.3.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - David Haslem