caboose-cms 0.4.63 → 0.4.64

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDM0ZDYyZmZlNjM2OTU2ZTg1OTJiNGM0MjNmYTdlNmQ4ZjgxY2U0YQ==
4
+ N2Y0MDJjZDc3ZTM5NTk2ZWUxNDE4MzE3ZGNkNDA2ZmQxNGFlNWY1MQ==
5
5
  data.tar.gz: !binary |-
6
- NWE1ZGJmM2U0N2Y1NTNmMzUxNTM0YjYwYjg3YTU2NDM4YmRiZmIxZA==
6
+ MDA1ZWQ2YTc0YjE1YjlhZGM0Y2MyNWNmMTY0ODA4ZGIwZDA3YTgyZg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODA5ZGIwYmY3ZjRjZTA4NWE4MGQwNWRmN2JhMWZmMzNmYzUwY2ViODQ3Zjlh
10
- NmFhYTM0NGMxMmJhYjAzYzdjNWQ1MzU4NzliNDUyMWNkYzNhMzVkNjlkNjc1
11
- OGY2YzU5YmY4NjY4MDNlMjM5N2FkNzBlN2I4MjViODlmM2I4MGM=
9
+ YmUzNDY2YjVjMmU2YzU5OGYwM2I5MWE0MjdiNjFkNGIzYzcxYjk4ZWQ3M2Fh
10
+ OTA0NTVkYTk4N2Y1ZTZlMDBlZGNiNTRhOGIyNzU4NzkxNGNmOThjMDgxNTli
11
+ YWRlYjc3MWU0OTlkZDFjMjNiNTNjMDY3OWQ5ZTViYjZhMWQ3YWQ=
12
12
  data.tar.gz: !binary |-
13
- ZTNmNjY2NjNlMTJlYjQzZTY0NzdhZTkxZjA2MjZiYmU3OGY0OGQyMjlhOTlh
14
- YTczMmY1Mjg4MjIyYjE0YmI5NmE2MGQ5OWI5ZTdjM2VhZDQ3YjgyYTUzZGIy
15
- MTY4MGZmYTQ0MDBhMzIzMzE0MWFhMDcwNzhmZmY1MTE2MDg5MDA=
13
+ OWNkNzZkNDBjNWEyYjZjNDZjZWM4Njg0ZjQ0OGZjODYyNzQ4Y2VjNmVkMDBi
14
+ NWZlOGI5YTdhMDk5NjZjZDkxYmM4YzVjMzg2Y2FmMjQxNjU5ZTE1MTZjNGUy
15
+ YzRmNDlhYmZkY2FhMTdlN2QwYjNiMmQ4YzAzMDUwZjU4ODA0OTE=
@@ -106,7 +106,10 @@ module Caboose
106
106
  def admin_index
107
107
  return if !user_is_allowed('pages', 'view')
108
108
  @domain = Domain.where(:domain => request.host_with_port).first
109
- @home_page = @domain ? Page.index_page(@domain.site_id) : nil
109
+ @home_page = @domain ? Page.index_page(@domain.site_id) : nil
110
+ if @domain && @home_page.nil?
111
+ @home_page = Caboose::Page.create(:site_id => @domain.site_id, :parent_id => -1, :title => 'Home')
112
+ end
110
113
  render :layout => 'caboose/admin'
111
114
  end
112
115
 
@@ -0,0 +1,9 @@
1
+
2
+ class Caboose::PermanentRedirect < ActiveRecord::Base
3
+ self.table_name = "permanent_redirects"
4
+
5
+ attr_accessible
6
+
7
+
8
+
9
+ end
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.4.63'
2
+ VERSION = '0.4.64'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.63
4
+ version: 0.4.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-31 00:00:00.000000000 Z
11
+ date: 2014-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -299,6 +299,7 @@ files:
299
299
  - app/models/caboose/page_bar_generator.rb
300
300
  - app/models/caboose/page_permission.rb
301
301
  - app/models/caboose/pager.rb
302
+ - app/models/caboose/permanent_redirect.rb
302
303
  - app/models/caboose/permission.rb
303
304
  - app/models/caboose/post.rb
304
305
  - app/models/caboose/post_category.rb