spud_cms 0.9.17 → 0.9.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -45,7 +45,7 @@ module Spud::Cms::ApplicationHelper
45
45
  content = "<ul #{"class='#{options[:class]}'" if options.has_key?(:class)}>"
46
46
  end
47
47
  if options.has_key?(:active_class)
48
- active_class = options[:acive_class]
48
+ active_class = options[:active_class]
49
49
  end
50
50
  if options.has_key?(:max_depth)
51
51
  max_depth = options[:max_depth]
@@ -87,7 +87,12 @@ module Spud::Cms::ApplicationHelper
87
87
  menu = SpudMenu
88
88
  menu_id = nil
89
89
  menu_key = ""
90
+ link_options = {}
90
91
  start_menu_item = nil
92
+ active_class = 'menu-active'
93
+ if options.has_key?(:active_class)
94
+ active_class = options[:active_class]
95
+ end
91
96
  if Spud::Core.multisite_mode_enabled
92
97
  site_config = Spud::Core.site_config_for_host(request.host_with_port)
93
98
  menu = menu.site(site_config[:site_id]) if !site_config.blank?
@@ -95,12 +100,10 @@ module Spud::Cms::ApplicationHelper
95
100
  end
96
101
  if !options.blank?
97
102
 
98
- if options.has_key?(:menu_id)
99
- menu_id = options[:menu_id]
100
- end
103
+ menu_id = options[:menu_id] if options.has_key?(:menu_id)
104
+ link_options = options[:link_options] if options.has_key?(:link_options)
101
105
  if options.has_key?(:name)
102
106
  menu_key += options[:name]
103
-
104
107
  menu = menu.where(:name => options[:name])
105
108
  menu_id = MENU_INDEX[menu_key]
106
109
  if menu_id.blank?
@@ -111,19 +114,13 @@ module Spud::Cms::ApplicationHelper
111
114
  end
112
115
  end
113
116
  end
114
- if options.has_key?(:start_menu_item_id)
115
- start_menu_item = options[:start_menu_item_id]
116
- end
117
+ start_menu_item = options[:start_menu_item_id] if options.has_key?(:start_menu_item_id)
117
118
  if options.has_key?(:id)
118
119
  content = "<ul id='#{options[:id]}' #{"class='#{options[:class]}'" if options.has_key?(:class)}>"
119
120
  else
120
121
  content = "<ul #{"class='#{options[:class]}'" if options.has_key?(:class)}>"
121
122
  end
122
-
123
-
124
- if options.has_key?(:max_depth)
125
- max_depth = options[:max_depth]
126
- end
123
+ max_depth = options[:max_depth] if options.has_key?(:max_depth)
127
124
  else
128
125
  content = "<ul>"
129
126
  end
@@ -166,9 +163,10 @@ module Spud::Cms::ApplicationHelper
166
163
  elsif current_page?(item.url)
167
164
  active = true
168
165
  end
169
- content += "<li class='#{"menu-active" if active} #{item.classes if !item.classes.blank?}'><a class='#{"menu-active" if active} #{item.classes if !item.classes.blank?}' href='#{!item.url_name.blank? ? (item.url_name == Spud::Cms.root_page_name ? root_path() : page_path(:id => item.url_name)) : item.url}'>#{item.name}</a>"
166
+ link_tag = link_to item.name, !item.url_name.blank? ? (item.url_name == Spud::Cms.root_page_name ? root_path() : page_path(:id => item.url_name)) : item.url, {:class => "#{'menu-active' if active} #{item.classes if !item.classes.blank?}"}.merge(link_options)
167
+ content += "<li class='#{active_class if active} #{item.classes if !item.classes.blank?}'>#{link_tag}"
170
168
  if max_depth == 0 || max_depth > 1
171
- content += sp_list_menu_item(child_items,item.id,2,max_depth)
169
+ content += sp_list_menu_item(child_items,item.id,2,max_depth,options)
172
170
  end
173
171
  content += "</li>"
174
172
  end
@@ -185,6 +183,7 @@ module Spud::Cms::ApplicationHelper
185
183
  seperator = options[:seperator]
186
184
  end
187
185
 
186
+
188
187
  menu = SpudMenu.where(:name => options[:name])
189
188
  if Spud::Core.multisite_mode_enabled
190
189
  site_config = Spud::Core.site_config_for_host(request.host_with_port)
@@ -213,8 +212,12 @@ module Spud::Cms::ApplicationHelper
213
212
  end
214
213
 
215
214
  private
216
- def sp_list_menu_item(items,item_id,depth,max_depth)
217
-
215
+ def sp_list_menu_item(items,item_id,depth,max_depth, options = {})
216
+ link_options = options.has_key?(:link_options) ? options[:link_options] : {}
217
+ active_class = 'menu-active'
218
+ if options.has_key?(:active_class)
219
+ active_class = options[:active_class]
220
+ end
218
221
  spud_menu_items = items[item_id]
219
222
  if spud_menu_items == nil
220
223
  return ""
@@ -232,7 +235,8 @@ private
232
235
  elsif current_page?(item.url)
233
236
  active = true
234
237
  end
235
- content += "<li class='#{"menu-active" if active} #{item.classes if !item.classes.blank?}'><a class='#{"menu-active" if active} #{item.classes if !item.classes.blank?}' href='#{!item.url_name.blank? ? (item.url_name == Spud::Cms.root_page_name ? root_path() : page_path(:id => item.url_name)) : item.url}'>#{item.name}</a>"
238
+ link_tag = link_to item.name, !item.url_name.blank? ? (item.url_name == Spud::Cms.root_page_name ? root_path() : page_path(:id => item.url_name)) : item.url, {:class => "#{'menu-active' if active} #{item.classes if !item.classes.blank?}"}.merge(link_options)
239
+ content += "<li class='#{active_class if active} #{item.classes if !item.classes.blank?}'>#{link_tag}"
236
240
  if max_depth == 0 || max_depth > depth
237
241
  content += sp_list_menu_item(items,item.id,depth+1,max_depth)
238
242
  end
@@ -7,6 +7,8 @@ class SpudPagePartial < ActiveRecord::Base
7
7
  before_save :update_symbol_name
8
8
  before_save :postprocess_content
9
9
  after_save :update_taglist
10
+
11
+
10
12
  def update_symbol_name
11
13
  self.symbol_name = self.name.parameterize.underscore
12
14
  end
@@ -46,18 +48,21 @@ class SpudPagePartial < ActiveRecord::Base
46
48
  end
47
49
 
48
50
  def maintain_revisions
49
- if !self.changed.include?('content')
50
- return true
51
+ if self.changed.include?('content')
52
+ revision = SpudPagePartialRevision.create(:spud_page_id => self.spud_page_id,:name => self.name,:format => self.format,:content => self.content)
53
+ drop_old_revisions if Spud::Cms.max_revisions > 0
51
54
  end
52
- revision = SpudPagePartialRevision.new(:spud_page_id => self.spud_page_id,:name => self.name,:format => self.format,:content => self.content)
53
- revision.save
54
- if Spud::Cms.max_revisions > 0
55
- revision_count = SpudPagePartialRevision.where(:spud_page_id => self.spud_page_id,:name => self.name).count
56
- if revision_count > Spud::Cms.max_revisions
57
- revision_bye = SpudPagePartialRevision.where(:spud_page_id => self.spud_page_id,:name => self.name).order("created_at ASC").first
58
- revision_bye.destroy if !revision_bye.blank?
59
- end
60
- end
55
+
61
56
  return true
62
57
  end
58
+
59
+ private
60
+
61
+ def drop_old_revisions
62
+ revision_count = SpudPagePartialRevision.for_partial(self).count
63
+ if revision_count > Spud::Cms.max_revisions
64
+ revision_bye = SpudPagePartialRevision.for_partial(self).order("created_at ASC").first
65
+ revision_bye.destroy if !revision_bye.blank?
66
+ end
67
+ end
63
68
  end
@@ -1,5 +1,8 @@
1
1
  class SpudPagePartialRevision < ActiveRecord::Base
2
2
  belongs_to :spud_page
3
-
3
+
4
4
  attr_accessible :name,:content,:format,:spud_page_id
5
+
6
+ scope :for_partial, lambda {|partial| where(:spud_page_id => partial.spud_page_id, :name => partial.name)}
7
+
5
8
  end
@@ -0,0 +1,17 @@
1
+ require 'rails/generators/migration'
2
+
3
+ class Spud::Cms::TemplateGenerator < ::Rails::Generators::Base
4
+ desc "This generator creates a new spud cms layout file"
5
+ argument :template_name, :type => :string
6
+ argument :attributes, :type => :array, :default => [], :banner => "content_block content_block"
7
+
8
+ source_root File.expand_path('../templates', __FILE__)
9
+
10
+ def create_module
11
+ template "template.html.erb", "app/views/layouts/#{template_name.downcase.underscore}.html.erb"
12
+ end
13
+
14
+ private
15
+
16
+
17
+ end
@@ -0,0 +1,28 @@
1
+ <%%
2
+ #template_name: <%=template_name.humanize.titlecase%>
3
+ <%-attributes.each do |attribute|-%>
4
+ <%="#html: #{attribute.humanize.titlecase}\n"-%>
5
+ <%-end-%>
6
+ %>
7
+
8
+ <!DOCTYPE html>
9
+ <html>
10
+ <head>
11
+ <title><%%=content_for?(:title) ? yield(:title) : Spud::Core.site_name%></title>
12
+ <%%= stylesheet_link_tag "application", :media => "all" %>
13
+ <%%= javascript_include_tag "application" %>
14
+ <%%= csrf_meta_tags %>
15
+ <%%= yield :head%>
16
+ </head>
17
+ <body>
18
+
19
+ <%attributes.each do |attribute|%>
20
+ <%if(attribute.downcase == 'body')%>
21
+ <%%=yield%>
22
+ <%else%>
23
+ <%%=yield :<%=attribute.downcase.underscore%>%>
24
+ <%end%>
25
+ <%end%>
26
+
27
+ </body>
28
+ </html>
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Cms
3
- VERSION = "0.9.17"
3
+ VERSION = "0.9.18"
4
4
  end
5
5
  end
@@ -0,0 +1,182 @@
1
+ Connecting to database specified by database.yml
2
+  (39.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
3
+  (9.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
4
+  (1.6ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
5
+ Migrating to CreateSpudPages (20120101192412)
6
+  (32.8ms) CREATE TABLE `spud_pages` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `url_name` varchar(255), `publish_at` datetime, `created_by` int(11), `updated_by` int(11), `format` varchar(255) DEFAULT 'html', `spud_page_id` int(11), `meta_description` text, `meta_keywords` varchar(255), `page_order` int(11), `template_id` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
7
+  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120101192412')
8
+ Migrating to CreateSpudMenus (20120101193138)
9
+  (5.9ms) CREATE TABLE `spud_menus` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `description` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
10
+  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120101193138')
11
+ Migrating to CreateSpudMenuItems (20120101193255)
12
+  (12.6ms) CREATE TABLE `spud_menu_items` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `parent_type` varchar(255), `parent_id` int(11), `item_type` int(11), `spud_page_id` int(11), `menu_order` int(11) DEFAULT 0, `url` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
13
+  (23.3ms) CREATE INDEX `index_spud_menu_items_on_parent_type_and_parent_id` ON `spud_menu_items` (`parent_type`, `parent_id`)
14
+  (9.4ms) CREATE INDEX `index_spud_menu_items_on_menu_order` ON `spud_menu_items` (`menu_order`)
15
+  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120101193255')
16
+ Migrating to CreateSpudTemplates (20120101194124)
17
+  (15.1ms) CREATE TABLE `spud_templates` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `base_layout` varchar(255), `content` text, `page_parts` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
18
+  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120101194124')
19
+ Migrating to CreateSpudPagePartials (20120103034659)
20
+  (12.0ms) CREATE TABLE `spud_page_partials` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_page_id` int(11), `name` varchar(255), `content` text, `format` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
21
+  (6.5ms) CREATE INDEX `index_spud_page_partials_on_spud_page_id` ON `spud_page_partials` (`spud_page_id`)
22
+  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120103034659')
23
+ Migrating to AddVisibilityToSpudPages (20120104194032)
24
+  (18.7ms) ALTER TABLE `spud_pages` ADD `visibility` int(11) DEFAULT 0
25
+  (11.8ms) ALTER TABLE `spud_pages` ADD `published` tinyint(1) DEFAULT 1
26
+  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120104194032')
27
+ Migrating to AddMenuNameToSpudMenuItems (20120107181337)
28
+  (15.8ms) ALTER TABLE `spud_menu_items` ADD `name` varchar(255)
29
+  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120107181337')
30
+ Migrating to AddUseCustomUrlNameToSpudPages (20120111134754)
31
+  (18.8ms) ALTER TABLE `spud_pages` ADD `use_custom_url_name` tinyint(1) DEFAULT 0
32
+  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120111134754')
33
+ Migrating to AddNotesToSpudPages (20120118141852)
34
+  (16.7ms) ALTER TABLE `spud_pages` ADD `notes` text
35
+  (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120118141852')
36
+ Migrating to AddMenuIdToSpudMenuItems (20120126232428)
37
+  (20.2ms) ALTER TABLE `spud_menu_items` ADD `spud_menu_id` int(11)
38
+  (8.7ms) CREATE INDEX `index_spud_menu_items_on_spud_menu_id` ON `spud_menu_items` (`spud_menu_id`)
39
+  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120126232428')
40
+ Migrating to AddClassesToSpudMenuItems (20120128163601)
41
+  (19.4ms) ALTER TABLE `spud_menu_items` ADD `classes` varchar(255)
42
+  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120128163601')
43
+ Migrating to CreateSpudAdminPermissions (20120307002859)
44
+  (9.8ms) CREATE TABLE `spud_admin_permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `name` varchar(255), `access` tinyint(1), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
45
+  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120307002859')
46
+ Migrating to CreateSpudUsers (20120307002860)
47
+  (14.7ms) CREATE TABLE `spud_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `first_name` varchar(255), `last_name` varchar(255), `super_admin` tinyint(1), `login` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `crypted_password` varchar(255) NOT NULL, `password_salt` varchar(255) NOT NULL, `persistence_token` varchar(255) NOT NULL, `single_access_token` varchar(255) NOT NULL, `perishable_token` varchar(255) NOT NULL, `login_count` int(11) DEFAULT 0 NOT NULL, `failed_login_count` int(11) DEFAULT 0 NOT NULL, `last_request_at` datetime, `current_login_at` datetime, `last_login_at` datetime, `current_login_ip` varchar(255), `last_login_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
48
+  (24.8ms) CREATE INDEX `index_spud_users_on_login` ON `spud_users` (`login`)
49
+  (26.8ms) CREATE INDEX `index_spud_users_on_email` ON `spud_users` (`email`)
50
+  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120307002860')
51
+ Migrating to CreateSpudPermalinks (20120307003559)
52
+  (14.7ms) CREATE TABLE `spud_permalinks` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url_name` varchar(255), `attachment_type` varchar(255), `attachment_id` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
53
+  (20.8ms) CREATE INDEX `index_spud_permalinks_on_attachment_type_and_attachment_id` ON `spud_permalinks` (`attachment_type`, `attachment_id`)
54
+  (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120307003559')
55
+ Migrating to AddSiteIdToSpudPages (20120329132314)
56
+  (29.2ms) ALTER TABLE `spud_pages` ADD `site_id` int(11)
57
+  (24.1ms) CREATE INDEX `index_spud_pages_on_site_id` ON `spud_pages` (`site_id`)
58
+  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120329132314')
59
+ Migrating to AddSiteIdToSpudTemplates (20120329132322)
60
+  (22.9ms) ALTER TABLE `spud_templates` ADD `site_id` int(11)
61
+  (7.8ms) CREATE INDEX `index_spud_templates_on_site_id` ON `spud_templates` (`site_id`)
62
+  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120329132322')
63
+ Migrating to AddSiteIdToSpudMenus (20120329132330)
64
+  (19.5ms) ALTER TABLE `spud_menus` ADD `site_id` int(11)
65
+  (9.1ms) CREATE INDEX `index_spud_menus_on_site_id` ON `spud_menus` (`site_id`)
66
+  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120329132330')
67
+ Migrating to CreateSpudPagePartialRevisions (20120510195151)
68
+  (28.1ms) CREATE TABLE `spud_page_partial_revisions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `content` text, `format` varchar(255), `spud_page_id` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
69
+  (18.2ms) CREATE INDEX `revision_idx` ON `spud_page_partial_revisions` (`spud_page_id`, `name`)
70
+  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120510195151')
71
+ Migrating to AddTimeZoneToSpudUser (20120610123555)
72
+  (19.8ms) ALTER TABLE `spud_users` ADD `time_zone` varchar(255)
73
+  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120610123555')
74
+ Migrating to AddScopeToSpudAdminPermissions (20120610123556)
75
+  (6.5ms) ALTER TABLE `spud_admin_permissions` ADD `scope` varchar(255)
76
+  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120610123556')
77
+ Migrating to CreateSpudUserSettings (20120610123557)
78
+  (22.0ms) CREATE TABLE `spud_user_settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `key` varchar(255), `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
79
+  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120610123557')
80
+ Migrating to AddSiteIdToSpudPermalinks (20120610123615)
81
+  (22.4ms) ALTER TABLE `spud_permalinks` ADD `site_id` int(11)
82
+  (23.5ms) CREATE INDEX `index_spud_permalinks_on_site_id` ON `spud_permalinks` (`site_id`)
83
+  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120610123615')
84
+ Migrating to AddSymbolNameToSpudPagePartials (20120911190030)
85
+  (17.5ms) ALTER TABLE `spud_page_partials` ADD `symbol_name` varchar(255)
86
+  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120911190030')
87
+ Migrating to ModifySiteIdForSpudPages (20120912121313)
88
+  (15.9ms) ALTER TABLE `spud_pages` CHANGE `site_id` `site_id` int(11) DEFAULT 0 NOT NULL
89
+  (19.2ms) ALTER TABLE `spud_templates` CHANGE `site_id` `site_id` int(11) DEFAULT 0 NOT NULL
90
+  (18.4ms) ALTER TABLE `spud_menus` CHANGE `site_id` `site_id` int(11) DEFAULT 0 NOT NULL
91
+ Creating scope :public. Overwriting existing method SpudPage.public.
92
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL
93
+ SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`site_id` IS NULL
94
+  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120912121313')
95
+ Migrating to AddContentProcessedToSpudPagePartials (20121016233715)
96
+  (25.7ms) ALTER TABLE `spud_page_partials` ADD `content_processed` text
97
+  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121016233715')
98
+ Migrating to AddLayoutToSpudPages (20121112151110)
99
+  (15.7ms) ALTER TABLE `spud_pages` ADD `layout` varchar(255)
100
+  (14.4ms) ALTER TABLE `spud_pages` DROP `template_id`
101
+  (0.7ms) DROP TABLE `spud_templates`
102
+  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121112151110')
103
+ Migrating to CreateSpudPageLiquidTags (20121112212113)
104
+  (13.8ms) CREATE TABLE `spud_page_liquid_tags` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_page_partial_id` int(11), `tag_name` varchar(255), `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
105
+  (8.0ms) CREATE INDEX `index_spud_page_liquid_tags_on_tag_name_and_value` ON `spud_page_liquid_tags` (`tag_name`, `value`)
106
+  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121112212113')
107
+ Migrating to CreateSpudSnippets (20121119025608)
108
+  (18.4ms) CREATE TABLE `spud_snippets` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `content` text, `format` varchar(255), `content_processed` text, `site_id` int(11) DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
109
+  (7.3ms) CREATE INDEX `index_spud_snippets_on_site_id` ON `spud_snippets` (`site_id`)
110
+  (22.3ms) CREATE INDEX `index_spud_snippets_on_name` ON `spud_snippets` (`name`)
111
+  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121119025608')
112
+ Migrating to ChangeLiquidTagsToPolymorphic (20121119030136)
113
+  (0.7ms) SHOW COLUMNS FROM `spud_page_liquid_tags` LIKE 'spud_page_partial_id'
114
+  (27.0ms) ALTER TABLE `spud_page_liquid_tags` CHANGE `spud_page_partial_id` `attachment_id` int(11) DEFAULT NULL
115
+  (17.5ms) ALTER TABLE `spud_page_liquid_tags` ADD `attachment_type` varchar(255)
116
+  (13.8ms) CREATE INDEX `index_spud_page_liquid_tags_on_attachment_type_and_attachment_id` ON `spud_page_liquid_tags` (`attachment_type`, `attachment_id`)
117
+ SpudPageLiquidTag Load (0.1ms) SELECT `spud_page_liquid_tags`.* FROM `spud_page_liquid_tags`
118
+  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121119030136')
119
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
120
+ Connecting to database specified by database.yml
121
+ Creating scope :public. Overwriting existing method SpudPage.public.
122
+  (1.6ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
123
+  (0.3ms) DROP DATABASE IF EXISTS `spud_cms_test`
124
+  (0.2ms) CREATE DATABASE `spud_cms_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
125
+  (51.7ms) CREATE TABLE `spud_admin_permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `name` varchar(255), `access` tinyint(1), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `scope` varchar(255)) ENGINE=InnoDB
126
+  (11.7ms) CREATE TABLE `spud_menu_items` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `parent_type` varchar(255), `parent_id` int(11), `item_type` int(11), `spud_page_id` int(11), `menu_order` int(11) DEFAULT 0, `url` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `name` varchar(255), `spud_menu_id` int(11), `classes` varchar(255)) ENGINE=InnoDB
127
+  (10.3ms) CREATE INDEX `index_spud_menu_items_on_menu_order` ON `spud_menu_items` (`menu_order`)
128
+  (14.0ms) CREATE INDEX `index_spud_menu_items_on_parent_type_and_parent_id` ON `spud_menu_items` (`parent_type`, `parent_id`)
129
+  (19.8ms) CREATE INDEX `index_spud_menu_items_on_spud_menu_id` ON `spud_menu_items` (`spud_menu_id`)
130
+  (16.8ms) CREATE TABLE `spud_menus` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `description` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `site_id` int(11) DEFAULT 0 NOT NULL) ENGINE=InnoDB
131
+  (6.5ms) CREATE INDEX `index_spud_menus_on_site_id` ON `spud_menus` (`site_id`)
132
+  (11.8ms) CREATE TABLE `spud_page_liquid_tags` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `attachment_id` int(11), `tag_name` varchar(255), `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `attachment_type` varchar(255)) ENGINE=InnoDB
133
+  (7.1ms) CREATE INDEX `index_spud_page_liquid_tags_on_attachment_type_and_attachment_id` ON `spud_page_liquid_tags` (`attachment_type`, `attachment_id`)
134
+  (14.2ms) CREATE INDEX `index_spud_page_liquid_tags_on_tag_name_and_value` ON `spud_page_liquid_tags` (`tag_name`, `value`)
135
+  (14.7ms) CREATE TABLE `spud_page_partial_revisions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `content` text, `format` varchar(255), `spud_page_id` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
136
+  (7.0ms) CREATE INDEX `revision_idx` ON `spud_page_partial_revisions` (`spud_page_id`, `name`)
137
+  (11.2ms) CREATE TABLE `spud_page_partials` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_page_id` int(11), `name` varchar(255), `content` text, `format` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `symbol_name` varchar(255), `content_processed` text) ENGINE=InnoDB
138
+  (6.9ms) CREATE INDEX `index_spud_page_partials_on_spud_page_id` ON `spud_page_partials` (`spud_page_id`)
139
+  (11.0ms) CREATE TABLE `spud_pages` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `url_name` varchar(255), `publish_at` datetime, `created_by` int(11), `updated_by` int(11), `format` varchar(255) DEFAULT 'html', `spud_page_id` int(11), `meta_description` text, `meta_keywords` varchar(255), `page_order` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `visibility` int(11) DEFAULT 0, `published` tinyint(1) DEFAULT 1, `use_custom_url_name` tinyint(1) DEFAULT 0, `notes` text, `site_id` int(11) DEFAULT 0 NOT NULL, `layout` varchar(255)) ENGINE=InnoDB
140
+  (6.9ms) CREATE INDEX `index_spud_pages_on_site_id` ON `spud_pages` (`site_id`)
141
+  (10.7ms) CREATE TABLE `spud_permalinks` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url_name` varchar(255), `attachment_type` varchar(255), `attachment_id` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `site_id` int(11)) ENGINE=InnoDB
142
+  (7.0ms) CREATE INDEX `index_spud_permalinks_on_attachment_type_and_attachment_id` ON `spud_permalinks` (`attachment_type`, `attachment_id`)
143
+  (13.1ms) CREATE INDEX `index_spud_permalinks_on_site_id` ON `spud_permalinks` (`site_id`)
144
+  (17.6ms) CREATE TABLE `spud_snippets` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `content` text, `format` varchar(255), `content_processed` text, `site_id` int(11) DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
145
+  (7.7ms) CREATE INDEX `index_spud_snippets_on_name` ON `spud_snippets` (`name`)
146
+  (21.8ms) CREATE INDEX `index_spud_snippets_on_site_id` ON `spud_snippets` (`site_id`)
147
+  (16.5ms) CREATE TABLE `spud_user_settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `key` varchar(255), `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
148
+  (5.6ms) CREATE TABLE `spud_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `first_name` varchar(255), `last_name` varchar(255), `super_admin` tinyint(1), `login` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `crypted_password` varchar(255) NOT NULL, `password_salt` varchar(255) NOT NULL, `persistence_token` varchar(255) NOT NULL, `single_access_token` varchar(255) NOT NULL, `perishable_token` varchar(255) NOT NULL, `login_count` int(11) DEFAULT 0 NOT NULL, `failed_login_count` int(11) DEFAULT 0 NOT NULL, `last_request_at` datetime, `current_login_at` datetime, `last_login_at` datetime, `current_login_ip` varchar(255), `last_login_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `time_zone` varchar(255)) ENGINE=InnoDB
149
+  (7.0ms) CREATE INDEX `index_spud_users_on_email` ON `spud_users` (`email`)
150
+  (17.8ms) CREATE INDEX `index_spud_users_on_login` ON `spud_users` (`login`)
151
+  (15.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
152
+  (7.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
153
+  (0.2ms) SELECT version FROM `schema_migrations`
154
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20121119030136')
155
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120307002859')
156
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120307002860')
157
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120307003559')
158
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120610123555')
159
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120610123556')
160
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120610123557')
161
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120610123615')
162
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120101192412')
163
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120101193138')
164
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120101193255')
165
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120101194124')
166
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120103034659')
167
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120104194032')
168
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120107181337')
169
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120111134754')
170
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120118141852')
171
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120126232428')
172
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120128163601')
173
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120329132314')
174
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120329132322')
175
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120329132330')
176
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120510195151')
177
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120911190030')
178
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120912121313')
179
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20121016233715')
180
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20121112151110')
181
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20121112212113')
182
+  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20121119025608')
@@ -1,139 +1,139 @@
1
1
  Connecting to database specified by database.yml
2
2
  Creating scope :public. Overwriting existing method SpudPage.public.
3
-  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
4
-  (0.3ms) SET FOREIGN_KEY_CHECKS = 0
5
-  (1.5ms) SELECT DATABASE() as db
6
-  (10.5ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'
7
-  (6.7ms) TRUNCATE TABLE `spud_admin_permissions`;
8
-  (8.0ms) TRUNCATE TABLE `spud_menu_items`;
9
-  (1.8ms) TRUNCATE TABLE `spud_menus`;
10
-  (2.5ms) TRUNCATE TABLE `spud_page_liquid_tags`;
11
-  (4.3ms) TRUNCATE TABLE `spud_page_partial_revisions`;
12
-  (1.8ms) TRUNCATE TABLE `spud_page_partials`;
13
-  (2.8ms) TRUNCATE TABLE `spud_pages`;
14
-  (1.8ms) TRUNCATE TABLE `spud_permalinks`;
15
-  (2.9ms) TRUNCATE TABLE `spud_snippets`;
16
-  (1.5ms) TRUNCATE TABLE `spud_user_settings`;
17
-  (1.8ms) TRUNCATE TABLE `spud_users`;
3
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
4
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
5
+  (0.1ms) SELECT DATABASE() as db
6
+  (0.8ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'
7
+  (0.6ms) TRUNCATE TABLE `spud_admin_permissions`;
8
+  (0.7ms) TRUNCATE TABLE `spud_menu_items`;
9
+  (0.6ms) TRUNCATE TABLE `spud_menus`;
10
+  (0.6ms) TRUNCATE TABLE `spud_page_liquid_tags`;
11
+  (0.6ms) TRUNCATE TABLE `spud_page_partial_revisions`;
12
+  (0.6ms) TRUNCATE TABLE `spud_page_partials`;
13
+  (0.6ms) TRUNCATE TABLE `spud_pages`;
14
+  (0.5ms) TRUNCATE TABLE `spud_permalinks`;
15
+  (0.5ms) TRUNCATE TABLE `spud_snippets`;
16
+  (0.4ms) TRUNCATE TABLE `spud_user_settings`;
17
+  (0.7ms) TRUNCATE TABLE `spud_users`;
18
18
   (0.1ms) SET FOREIGN_KEY_CHECKS = 1
19
-  (0.0ms) BEGIN
20
-  (0.0ms) BEGIN
19
+  (0.1ms) BEGIN
20
+  (0.1ms) BEGIN
21
21
   (0.1ms) SAVEPOINT active_record_2
22
- SpudPage Load (1.8ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
22
+ SpudPage Load (1.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
23
23
  SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1
24
- SpudPage Exists (1.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
25
- SpudPage Exists (0.4ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` = 0) LIMIT 1
26
- SQL (0.8ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:26', NULL, 'html', NULL, NULL, NULL, 'Page1', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:26', NULL, 'page1', 0, 0)
24
+ SpudPage Exists (0.4ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
25
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` = 0) LIMIT 1
26
+ SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:26', NULL, 'html', NULL, NULL, NULL, 'Page1', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:26', NULL, 'page1', 0, 0)
27
27
   (0.1ms) RELEASE SAVEPOINT active_record_2
28
28
  Processing by PagesController#show as HTML
29
29
  Parameters: {"id"=>"page1"}
30
- SpudPage Load (1.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`url_name` = 'page1' LIMIT 1
31
- SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (1)
32
- Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/pages/show.html.erb within layouts/application (3.2ms)
33
- Completed 200 OK in 70ms (Views: 13.3ms | ActiveRecord: 2.8ms)
30
+ SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`url_name` = 'page1' LIMIT 1
31
+ SpudPagePartial Load (0.1ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (1)
32
+ Rendered /Users/davidestes/projects/spud_rails/spud_cms/app/views/pages/show.html.erb within layouts/application (24.1ms)
33
+ Completed 200 OK in 50ms (Views: 32.3ms | ActiveRecord: 1.8ms)
34
34
   (0.5ms) ROLLBACK
35
-  (0.2ms) ROLLBACK
35
+  (0.1ms) ROLLBACK
36
36
   (0.0ms) BEGIN
37
37
   (0.0ms) BEGIN
38
38
   (0.1ms) SAVEPOINT active_record_2
39
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
39
+ SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
40
40
  SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'home' LIMIT 1
41
41
  SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'home' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
42
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'home' AND `spud_pages`.`site_id` = 0) LIMIT 1
43
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:26', NULL, 'html', NULL, NULL, NULL, 'home', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:26', NULL, 'home', 0, 0)
44
-  (0.1ms) RELEASE SAVEPOINT active_record_2
42
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'home' AND `spud_pages`.`site_id` = 0) LIMIT 1
43
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:26', NULL, 'html', NULL, NULL, NULL, 'home', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:26', NULL, 'home', 0, 0)
44
+  (0.0ms) RELEASE SAVEPOINT active_record_2
45
45
  Processing by PagesController#show as HTML
46
46
  SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`url_name` = 'home' LIMIT 1
47
- SpudPagePartial Load (0.3ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (2)
48
- Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.6ms)
49
-  (0.5ms) ROLLBACK
47
+ SpudPagePartial Load (0.1ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (2)
48
+ Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.4ms)
49
+  (0.4ms) ROLLBACK
50
50
   (0.1ms) ROLLBACK
51
51
   (0.0ms) BEGIN
52
52
   (0.0ms) BEGIN
53
53
   (0.1ms) SAVEPOINT active_record_2
54
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
55
- SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'about' LIMIT 1
54
+ SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
55
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'about' LIMIT 1
56
56
  SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
57
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` = 0) LIMIT 1
58
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:26', NULL, 'html', NULL, NULL, NULL, 'about', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:26', NULL, 'about', 0, 0)
59
-  (0.1ms) RELEASE SAVEPOINT active_record_2
60
-  (0.0ms) SAVEPOINT active_record_2
57
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` = 0) LIMIT 1
58
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:26', NULL, 'html', NULL, NULL, NULL, 'about', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:26', NULL, 'about', 0, 0)
59
+  (0.2ms) RELEASE SAVEPOINT active_record_2
60
+  (0.1ms) SAVEPOINT active_record_2
61
61
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0 AND (id != 3)
62
62
  SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'about-us' LIMIT 1
63
63
  SpudPermalink Exists (0.3ms) SELECT 1 AS one FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'about' AND `spud_permalinks`.`site_id` = 0) LIMIT 1
64
- SQL (0.3ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (3, 'SpudPage', '2013-02-20 13:04:26', 0, '2013-02-20 13:04:26', 'about')
64
+ SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (3, 'SpudPage', '2013-03-09 02:53:26', 0, '2013-03-09 02:53:26', 'about')
65
65
  SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about us' AND `spud_pages`.`id` != 3 AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
66
66
  SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about-us' AND `spud_pages`.`id` != 3 AND `spud_pages`.`site_id` = 0) LIMIT 1
67
-  (0.3ms) UPDATE `spud_pages` SET `name` = 'about us', `url_name` = 'about-us', `updated_at` = '2013-02-20 13:04:26' WHERE `spud_pages`.`id` = 3
67
+  (0.2ms) UPDATE `spud_pages` SET `name` = 'about us', `url_name` = 'about-us', `updated_at` = '2013-03-09 02:53:26' WHERE `spud_pages`.`id` = 3
68
68
   (0.1ms) RELEASE SAVEPOINT active_record_2
69
69
  Processing by PagesController#show as HTML
70
70
  Parameters: {"id"=>"about"}
71
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`url_name` = 'about' LIMIT 1
71
+ SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`url_name` = 'about' LIMIT 1
72
72
  SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`url_name` = 'about' LIMIT 1
73
- SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 3 LIMIT 1
73
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 3 LIMIT 1
74
74
  Redirected to http://test.host/about-us
75
- Completed 301 Moved Permanently in 7ms (ActiveRecord: 0.8ms)
76
-  (0.7ms) ROLLBACK
77
-  (0.0ms) ROLLBACK
78
-  (0.0ms) BEGIN
75
+ Completed 301 Moved Permanently in 6ms (ActiveRecord: 0.7ms)
76
+  (0.5ms) ROLLBACK
77
+  (0.1ms) ROLLBACK
78
+  (0.1ms) BEGIN
79
79
   (0.0ms) BEGIN
80
-  (0.0ms) SAVEPOINT active_record_2
81
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
82
- SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'about' LIMIT 1
80
+  (0.1ms) SAVEPOINT active_record_2
81
+ SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
82
+ SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'about' LIMIT 1
83
83
  SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
84
84
  SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` = 0) LIMIT 1
85
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:26', NULL, 'html', NULL, NULL, NULL, 'about', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:26', NULL, 'about', 0, 1)
85
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:27', NULL, 'html', NULL, NULL, NULL, 'about', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:27', NULL, 'about', 0, 1)
86
86
   (0.1ms) RELEASE SAVEPOINT active_record_2
87
87
  Processing by PagesController#show as HTML
88
88
  Parameters: {"id"=>"about"}
89
89
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`url_name` = 'about' LIMIT 1
90
90
  SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (4)
91
91
  Redirected to http://test.host/spud/user_session/new
92
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
92
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
93
93
   (0.5ms) ROLLBACK
94
-  (0.0ms) ROLLBACK
95
-  (0.0ms) BEGIN
96
-  (0.0ms) BEGIN
97
-  (0.2ms) SAVEPOINT active_record_2
98
- SpudUser Exists (0.4ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
94
+  (0.1ms) ROLLBACK
95
+  (0.1ms) BEGIN
96
+  (0.1ms) BEGIN
97
+  (0.1ms) SAVEPOINT active_record_2
98
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
99
99
  SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
100
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '81f10be0efd6bca91cbccd8435b3c32eb7d1eea09da2e0db13d475770531aeb24d237e9edd1bf3a65316d2d68be84a5085033d0461a580cc36621b4aa4f10c3d' LIMIT 1
101
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'Nyn6upb7ZoVoFWDnu7g' LIMIT 1
102
- SQL (0.8ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:26', 'c50fe123ef52ba1c742327b5fa75f7471be9d7ea9567c1998a6c5a85ee7a7a0fc0d71069b8853bee5b44f76e7459a8c9718aa070e8dd80c79682e19df36efe62', '2013-02-20 13:04:26', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:26', 'testuser', 1, 'ED1rs1pX2oq2TOf98a9', 'qmgMbBw0OssBNJ2BOQ', '81f10be0efd6bca91cbccd8435b3c32eb7d1eea09da2e0db13d475770531aeb24d237e9edd1bf3a65316d2d68be84a5085033d0461a580cc36621b4aa4f10c3d', 'Nyn6upb7ZoVoFWDnu7g', 1, NULL, '2013-02-20 13:04:26')
103
-  (0.2ms) RELEASE SAVEPOINT active_record_2
104
-  (0.2ms) SAVEPOINT active_record_2
105
-  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:26', `last_login_ip` = '0.0.0.0', `perishable_token` = 'vXj30pZc5SatXGToftB', `updated_at` = '2013-02-20 13:04:26' WHERE `spud_users`.`id` = 1
100
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '01f22bdef4d61125058adde84d058dd7eed5967147b6c386c4cccc202f16716cf8155bc502d838ddea6d9bd653c2630d4ebd0410d5b0f28a7fd2aa074776d028' LIMIT 1
101
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'O4nbLX5qNxcPQt5lfu6' LIMIT 1
102
+ SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', '24f85f03123e8ffc71e0d7c714f3e1d377f4230fbf972282a27f4d9bbc9ded593a995d96c22e0321413a569c385719ff8564f8d4288c63a3808dfb458c3f3f51', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'LcNcOR60A0NB4WCwwa90', '7jjuhjmhyyu6Sks0JR', '01f22bdef4d61125058adde84d058dd7eed5967147b6c386c4cccc202f16716cf8155bc502d838ddea6d9bd653c2630d4ebd0410d5b0f28a7fd2aa074776d028', 'O4nbLX5qNxcPQt5lfu6', 1, NULL, '2013-03-09 02:53:27')
103
+  (0.0ms) RELEASE SAVEPOINT active_record_2
104
+  (0.1ms) SAVEPOINT active_record_2
105
+  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'MFBaUDwMm3S1ICM8N3QX', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 1
106
106
   (0.1ms) RELEASE SAVEPOINT active_record_2
107
107
   (0.1ms) SAVEPOINT active_record_2
108
- SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
108
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
109
109
  SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'about' LIMIT 1
110
110
  SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
111
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` = 0) LIMIT 1
112
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:26', NULL, 'html', NULL, NULL, NULL, 'about', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:26', NULL, 'about', 0, 1)
111
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` = 0) LIMIT 1
112
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:27', NULL, 'html', NULL, NULL, NULL, 'about', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:27', NULL, 'about', 0, 1)
113
113
   (0.1ms) RELEASE SAVEPOINT active_record_2
114
114
  Processing by PagesController#show as HTML
115
115
  Parameters: {"id"=>"about"}
116
116
  SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1
117
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`url_name` = 'about' LIMIT 1
117
+ SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`url_name` = 'about' LIMIT 1
118
118
  SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (5)
119
- Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.6ms)
119
+ Completed 200 OK in 6ms (Views: 0.9ms | ActiveRecord: 0.7ms)
120
120
   (0.5ms) ROLLBACK
121
121
   (0.1ms) ROLLBACK
122
122
   (0.0ms) BEGIN
123
123
   (0.0ms) BEGIN
124
-  (0.1ms) SAVEPOINT active_record_2
124
+  (0.2ms) SAVEPOINT active_record_2
125
125
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
126
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'about' LIMIT 1
127
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
128
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` = 0) LIMIT 1
129
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:26', NULL, 'html', NULL, NULL, NULL, 'about', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:26', NULL, 'about', 0, 0)
126
+ SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'about' LIMIT 1
127
+ SpudPage Exists (0.3ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
128
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` = 0) LIMIT 1
129
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:27', NULL, 'html', NULL, NULL, NULL, 'about', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:27', NULL, 'about', 0, 0)
130
130
   (0.1ms) RELEASE SAVEPOINT active_record_2
131
131
  Processing by PagesController#show as HTML
132
132
  Parameters: {"id"=>"about"}
133
133
  SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`url_name` = 'about' AND `spud_pages`.`site_id` = 1 LIMIT 1
134
- SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`url_name` = 'about' AND `spud_permalinks`.`site_id` = 1 LIMIT 1
135
- Completed 404 Not Found in 5ms (Views: 2.4ms | ActiveRecord: 0.6ms)
136
-  (0.6ms) ROLLBACK
134
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`url_name` = 'about' AND `spud_permalinks`.`site_id` = 1 LIMIT 1
135
+ Completed 404 Not Found in 5ms (Views: 2.2ms | ActiveRecord: 0.5ms)
136
+  (0.5ms) ROLLBACK
137
137
   (0.1ms) ROLLBACK
138
138
   (0.0ms) BEGIN
139
139
   (0.0ms) BEGIN
@@ -141,326 +141,326 @@ Completed 404 Not Found in 5ms (Views: 2.4ms | ActiveRecord: 0.6ms)
141
141
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
142
142
  SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'about' LIMIT 1
143
143
  SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
144
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` = 0) LIMIT 1
145
- SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:26', NULL, 'html', NULL, NULL, NULL, 'about', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:26', NULL, 'about', 0, 0)
144
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` = 0) LIMIT 1
145
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:27', NULL, 'html', NULL, NULL, NULL, 'about', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:27', NULL, 'about', 0, 0)
146
146
   (0.1ms) RELEASE SAVEPOINT active_record_2
147
-  (0.1ms) SAVEPOINT active_record_2
147
+  (0.0ms) SAVEPOINT active_record_2
148
148
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 1
149
149
  SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 1 AND `spud_permalinks`.`url_name` = 'about' LIMIT 1
150
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` = 1 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
150
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` = 1 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
151
151
  SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` = 1) LIMIT 1
152
- SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:26', NULL, 'html', NULL, NULL, NULL, 'about', NULL, NULL, NULL, 1, 1, NULL, '2013-02-20 13:04:26', NULL, 'about', 0, 0)
153
-  (0.1ms) RELEASE SAVEPOINT active_record_2
152
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:27', NULL, 'html', NULL, NULL, NULL, 'about', NULL, NULL, NULL, 1, 1, NULL, '2013-03-09 02:53:27', NULL, 'about', 0, 0)
153
+  (0.2ms) RELEASE SAVEPOINT active_record_2
154
154
  Processing by PagesController#show as HTML
155
155
  Parameters: {"id"=>"about"}
156
156
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`url_name` = 'about' AND `spud_pages`.`site_id` = 1 LIMIT 1
157
157
  SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (8)
158
- Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.4ms)
159
-  (0.8ms) ROLLBACK
160
-  (0.1ms) ROLLBACK
161
-  (0.0ms) BEGIN
162
-  (0.0ms) BEGIN
158
+ Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.4ms)
159
+  (0.5ms) ROLLBACK
160
+  (0.2ms) ROLLBACK
161
+  (0.1ms) BEGIN
162
+  (0.1ms) BEGIN
163
163
   (0.1ms) SAVEPOINT active_record_2
164
- SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
165
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'home' LIMIT 1
164
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
165
+ SpudPermalink Load (0.4ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'home' LIMIT 1
166
166
  SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'home' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
167
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'home' AND `spud_pages`.`site_id` = 0) LIMIT 1
168
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:27', NULL, 'html', NULL, NULL, NULL, 'home', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:27', NULL, 'home', 0, 0)
167
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'home' AND `spud_pages`.`site_id` = 0) LIMIT 1
168
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:27', NULL, 'html', NULL, NULL, NULL, 'home', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:27', NULL, 'home', 0, 0)
169
169
   (0.0ms) RELEASE SAVEPOINT active_record_2
170
170
   (0.0ms) SAVEPOINT active_record_2
171
171
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 1
172
172
  SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 1 AND `spud_permalinks`.`url_name` = 'home' LIMIT 1
173
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'home' AND `spud_pages`.`site_id` = 1 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
174
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'home' AND `spud_pages`.`site_id` = 1) LIMIT 1
175
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:27', NULL, 'html', NULL, NULL, NULL, 'home', NULL, NULL, NULL, 1, 1, NULL, '2013-02-20 13:04:27', NULL, 'home', 0, 0)
173
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'home' AND `spud_pages`.`site_id` = 1 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
174
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'home' AND `spud_pages`.`site_id` = 1) LIMIT 1
175
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:27', NULL, 'html', NULL, NULL, NULL, 'home', NULL, NULL, NULL, 1, 1, NULL, '2013-03-09 02:53:27', NULL, 'home', 0, 0)
176
176
   (0.1ms) RELEASE SAVEPOINT active_record_2
177
177
  Processing by PagesController#show as HTML
178
- SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`url_name` = 'home' AND `spud_pages`.`site_id` = 1 LIMIT 1
179
- SpudPagePartial Load (0.3ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (10)
180
- Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.6ms)
181
-  (0.3ms) ROLLBACK
182
-  (0.0ms) ROLLBACK
178
+ SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`url_name` = 'home' AND `spud_pages`.`site_id` = 1 LIMIT 1
179
+ SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (10)
180
+ Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.6ms)
181
+  (0.5ms) ROLLBACK
182
+  (0.1ms) ROLLBACK
183
183
   (0.0ms) BEGIN
184
184
   (0.0ms) BEGIN
185
-  (0.2ms) ROLLBACK
186
-  (0.0ms) ROLLBACK
185
+  (0.0ms) ROLLBACK
186
+  (0.1ms) ROLLBACK
187
187
   (0.0ms) BEGIN
188
188
   (0.0ms) BEGIN
189
-  (0.2ms) SAVEPOINT active_record_2
189
+  (0.1ms) SAVEPOINT active_record_2
190
190
  SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
191
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
192
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'fd8ec0c96ab10e8f9a3200c55a9a142fe42d9f357b69655881b2807a2d21e9a25b1cda2c59da0ccdb5d364f4aedbd13c3aa91804f1a00e37a756b2c0d77a46e2' LIMIT 1
193
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'oLGbZj9dB9wcGrWs5j' LIMIT 1
194
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', 'a6e2e5632ec215d6e0809804cd2e7c2720a9ac064280b1e320a0dca1e2a9f1d9a2019b2a8f19cdfa08d55a676c5c9aec7c791ebc810cf2a6a7ded6fbc60696df', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'CEqOfxjSygM4jbLilTH5', 'pytYzNHXEUuwc8csdER', 'fd8ec0c96ab10e8f9a3200c55a9a142fe42d9f357b69655881b2807a2d21e9a25b1cda2c59da0ccdb5d364f4aedbd13c3aa91804f1a00e37a756b2c0d77a46e2', 'oLGbZj9dB9wcGrWs5j', 1, NULL, '2013-02-20 13:04:27')
195
-  (0.0ms) RELEASE SAVEPOINT active_record_2
196
-  (0.2ms) SAVEPOINT active_record_2
197
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'Hl9zGKNz52larHggEO', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 2
198
-  (0.1ms) RELEASE SAVEPOINT active_record_2
199
-  (0.2ms) SAVEPOINT active_record_2
200
- SpudMenu Exists (0.3ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu1' AND `spud_menus`.`site_id` = 0) LIMIT 1
201
- SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu1', 0, '2013-02-20 13:04:27')
191
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
192
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'aa91baaae09a054d99eb2c3a338ebdc81ddd937002ebd56ed0b5fbf84fec1ca43a7d184903d615ec42ca95352da8d086ca910ab86f74e239982faf5bda844a24' LIMIT 1
193
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'WrfNqX2fqszi48FA5F' LIMIT 1
194
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', '6d0eb951b1a36b213f2395b8f519f100bb5a1b1b355ce31ee1a5f08ba7a55368eb2fababa74ddf68c81037b774d23cd914c2f337a289f6e9f6cba8c83323934e', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'r8TsVaGpWS1ENGwBb3CF', 'UP80MNB9jFrZhsVtOdfk', 'aa91baaae09a054d99eb2c3a338ebdc81ddd937002ebd56ed0b5fbf84fec1ca43a7d184903d615ec42ca95352da8d086ca910ab86f74e239982faf5bda844a24', 'WrfNqX2fqszi48FA5F', 1, NULL, '2013-03-09 02:53:27')
195
+  (0.1ms) RELEASE SAVEPOINT active_record_2
196
+  (0.1ms) SAVEPOINT active_record_2
197
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = '3sREnEvBbTnDOyYt2BJY', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 2
202
198
   (0.0ms) RELEASE SAVEPOINT active_record_2
203
-  (0.3ms) SAVEPOINT active_record_2
204
- SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:27', NULL, 0, 'Menu Item 1', 1, 'SpudMenu', 1, NULL, '2013-02-20 13:04:27', NULL)
199
+  (0.2ms) SAVEPOINT active_record_2
200
+ SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu1' AND `spud_menus`.`site_id` = 0) LIMIT 1
201
+ SQL (0.2ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu1', 0, '2013-03-09 02:53:27')
202
+  (0.1ms) RELEASE SAVEPOINT active_record_2
203
+  (0.1ms) SAVEPOINT active_record_2
204
+ SQL (0.3ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:27', NULL, 0, 'Menu Item 1', 1, 'SpudMenu', 1, NULL, '2013-03-09 02:53:27', NULL)
205
205
   (0.1ms) RELEASE SAVEPOINT active_record_2
206
-  (0.0ms) SAVEPOINT active_record_2
207
- SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:27', NULL, 0, 'Menu Item 2', 1, 'SpudMenu', 1, NULL, '2013-02-20 13:04:27', NULL)
206
+  (0.1ms) SAVEPOINT active_record_2
207
+ SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:27', NULL, 0, 'Menu Item 2', 1, 'SpudMenu', 1, NULL, '2013-03-09 02:53:27', NULL)
208
208
   (0.1ms) RELEASE SAVEPOINT active_record_2
209
209
  Processing by Spud::Admin::MenuItemsController#index as HTML
210
210
  Parameters: {"menu_id"=>"1"}
211
211
  SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 2 LIMIT 1
212
212
  SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 1 LIMIT 1
213
- Completed 200 OK in 9ms (Views: 2.9ms | ActiveRecord: 0.5ms)
213
+ Completed 200 OK in 9ms (Views: 2.2ms | ActiveRecord: 0.5ms)
214
214
   (0.4ms) SELECT COUNT(*) FROM `spud_menu_items` WHERE `spud_menu_items`.`parent_id` = 1 AND `spud_menu_items`.`parent_type` = 'SpudMenu'
215
215
   (0.4ms) ROLLBACK
216
-  (0.1ms) ROLLBACK
217
-  (0.1ms) BEGIN
218
-  (0.1ms) BEGIN
219
-  (0.0ms) SAVEPOINT active_record_2
220
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
221
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
222
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '356e595b02788ffb9a0d3ca35de6a9c9c509702f6d3a941f9eb599641b13854731a413ef70cb12a04301d8cf4dca488e0a17d17daecc63b2f64273f6844dbc81' LIMIT 1
223
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'hn6LZNqT80u4CB1meI5' LIMIT 1
224
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', 'da609360093a47b206314b82a9bb1283079c844faa0067f39c4b93baeacce54748c1348938b7eacd55cf956a19d8ad502a6c6e413d01b2bdc5de4c7942bd2c9a', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'JTCkqUObUawuwrp4eMQS', 'fEVNU6dkSpz4FoHYjEZ', '356e595b02788ffb9a0d3ca35de6a9c9c509702f6d3a941f9eb599641b13854731a413ef70cb12a04301d8cf4dca488e0a17d17daecc63b2f64273f6844dbc81', 'hn6LZNqT80u4CB1meI5', 1, NULL, '2013-02-20 13:04:27')
225
-  (0.2ms) RELEASE SAVEPOINT active_record_2
226
-  (0.2ms) SAVEPOINT active_record_2
227
-  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'sTPCoSgn7f5wtZaCPKH', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 3
216
+  (0.0ms) ROLLBACK
217
+  (0.0ms) BEGIN
218
+  (0.0ms) BEGIN
219
+  (0.1ms) SAVEPOINT active_record_2
220
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
221
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
222
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '1e51d3816f87a86041d677265c794e7af4f5fd51e4273f8c57f6de28bf9d2ee07c50c5ca8a9b931b802b50f1a5a25227cf51e13e0bbf735022e627a531b69da5' LIMIT 1
223
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'AeBDWSOXU4medKWPw5MK' LIMIT 1
224
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', 'e46201519a1b323ff2ae6f219097ccbab889e7b8ff69ef50c35eb4e31de622e93cfe63426e3b4b5733937eab84bc3c496c986c1c2c7c5efb71d137d8d1f19bf0', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'sWZFIDLpFz1o6Dkitsm4', 'ppexf3aOoZjoiiy7E1rv', '1e51d3816f87a86041d677265c794e7af4f5fd51e4273f8c57f6de28bf9d2ee07c50c5ca8a9b931b802b50f1a5a25227cf51e13e0bbf735022e627a531b69da5', 'AeBDWSOXU4medKWPw5MK', 1, NULL, '2013-03-09 02:53:27')
225
+  (0.1ms) RELEASE SAVEPOINT active_record_2
226
+  (0.1ms) SAVEPOINT active_record_2
227
+  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'BzZHmp3Q4Tl3EszeWLq', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 3
228
228
   (0.1ms) RELEASE SAVEPOINT active_record_2
229
229
   (0.1ms) SAVEPOINT active_record_2
230
230
  SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu2' AND `spud_menus`.`site_id` = 0) LIMIT 1
231
- SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu2', 0, '2013-02-20 13:04:27')
232
-  (0.0ms) RELEASE SAVEPOINT active_record_2
231
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu2', 0, '2013-03-09 02:53:27')
232
+  (0.1ms) RELEASE SAVEPOINT active_record_2
233
233
  Processing by Spud::Admin::MenuItemsController#index as HTML
234
234
  Parameters: {"menu_id"=>"3"}
235
235
  SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 3 LIMIT 1
236
- SpudMenu Load (0.3ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 3 LIMIT 1
236
+ SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 3 LIMIT 1
237
237
  Redirected to http://test.host/spud/admin/menus
238
238
  Filter chain halted as :load_menu rendered or redirected
239
- Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
240
-  (1.0ms) ROLLBACK
241
-  (0.2ms) ROLLBACK
242
-  (0.1ms) BEGIN
239
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
240
+  (0.4ms) ROLLBACK
241
+  (0.1ms) ROLLBACK
242
+  (0.0ms) BEGIN
243
243
   (0.0ms) BEGIN
244
244
   (0.2ms) SAVEPOINT active_record_2
245
245
  SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
246
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
247
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '46057244a5179625078e02dce164c9a48539fb7ac57476a3e9c608765686a26d40f41f2e1dfde5f257ac36b940f3a21338cf7aa3027f805b315ad3bdeb9eb039' LIMIT 1
248
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'P6byXnG8gIazgXABk7f' LIMIT 1
249
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '922f03295d075baff58393bcc4d597b54e003a99eea87e9e13f1113f3516a22c7246f283ab8d4599e164b81eed57aec2cbd02afc6168983bd60d9a6db415fb64', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'sY5sqvo8BwGjT0RL7xvd', 'CsNze4csywjrzuZk0RSS', '46057244a5179625078e02dce164c9a48539fb7ac57476a3e9c608765686a26d40f41f2e1dfde5f257ac36b940f3a21338cf7aa3027f805b315ad3bdeb9eb039', 'P6byXnG8gIazgXABk7f', 1, NULL, '2013-02-20 13:04:27')
246
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
247
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '908bca40710b9965d709340cd2a84c6b95cc4704ead2be31319aa4839de64477158759f59c5823cb9ccf2815a3cdc3fa2811dfd88f812c0b89c7bc2bfdda1ffe' LIMIT 1
248
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '6Yc2uTHgAoREltW7N0ei' LIMIT 1
249
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', 'a5d3ea4adddef7222326c0967e2071153d89f989c099040a892c2113382da9f0fbe006c233add3859c1a2f6bac8b5d71bc8f62af8db300f6d84e8cf7ff4f1050', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'ExUEi96qdxQBFHYtr0CT', 'rXZEEwSV4Gp4NaoAoSL', '908bca40710b9965d709340cd2a84c6b95cc4704ead2be31319aa4839de64477158759f59c5823cb9ccf2815a3cdc3fa2811dfd88f812c0b89c7bc2bfdda1ffe', '6Yc2uTHgAoREltW7N0ei', 1, NULL, '2013-03-09 02:53:27')
250
250
   (0.1ms) RELEASE SAVEPOINT active_record_2
251
-  (0.2ms) SAVEPOINT active_record_2
252
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'Vyr6fr396CWuTs3UTKFo', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 4
251
+  (0.1ms) SAVEPOINT active_record_2
252
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'Ub1T5Kln42DXoz8QvLH', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 4
253
253
   (0.1ms) RELEASE SAVEPOINT active_record_2
254
254
   (0.1ms) SAVEPOINT active_record_2
255
255
  SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu3' AND `spud_menus`.`site_id` = 0) LIMIT 1
256
- SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu3', 0, '2013-02-20 13:04:27')
256
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu3', 0, '2013-03-09 02:53:27')
257
257
   (0.1ms) RELEASE SAVEPOINT active_record_2
258
258
  Processing by Spud::Admin::MenuItemsController#new as HTML
259
259
  Parameters: {"menu_id"=>"3"}
260
- SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 4 LIMIT 1
261
- SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 3 LIMIT 1
262
- Completed 200 OK in 7ms (Views: 1.9ms | ActiveRecord: 0.4ms)
263
-  (0.8ms) ROLLBACK
264
-  (0.2ms) ROLLBACK
265
-  (0.1ms) BEGIN
260
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 4 LIMIT 1
261
+ SpudMenu Load (0.3ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 3 LIMIT 1
262
+ Completed 200 OK in 6ms (Views: 1.3ms | ActiveRecord: 0.5ms)
263
+  (0.4ms) ROLLBACK
264
+  (0.1ms) ROLLBACK
265
+  (0.0ms) BEGIN
266
266
   (0.0ms) BEGIN
267
267
   (0.1ms) SAVEPOINT active_record_2
268
268
  SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
269
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
270
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '77e68d348fa02ccf222949f97848b0709be853a3b41b5b04734e83c6ed60cbd249992cea3eec49f20f59ee18a6b487a356164617a6f8c8c40c273a5a9a391d39' LIMIT 1
271
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'jyfEfIxT0tH9ZD9jOlVK' LIMIT 1
272
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '0054f4fe994821d183c0860aa107b1b2e4bc379591c72982d15ae573ad337ff1c565302043e94272c7ea945fd5660bff5b6444a0e92bb6e5297e5db49c87b0d7', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 't0LkUbYd0HXNwwbfggkO', 'SyMvGXh06RGuqgzpejLq', '77e68d348fa02ccf222949f97848b0709be853a3b41b5b04734e83c6ed60cbd249992cea3eec49f20f59ee18a6b487a356164617a6f8c8c40c273a5a9a391d39', 'jyfEfIxT0tH9ZD9jOlVK', 1, NULL, '2013-02-20 13:04:27')
269
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
270
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '2adefd4f4d88b174bbfd0a3f1ef573d521003c51d8d8210c2348ca712ad73a7e9855ba0c5aa3e3b452bc4eaed645475ccfe401149ef7be713e5c078a9fbbe832' LIMIT 1
271
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '5FwOfDLff8ZhQVukGnL' LIMIT 1
272
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', '0f136463d27931e92d854ab107a5608e99e0bca94a2ea1290057fbff253ae87d85c594c8ad8d9fd162e5c725cc9cb20fd300b6f4876785c226ca32a76220f811', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'HHDFrRJju1R7ccSHAHR', 'Lz4ZQE7upKzshtFdxjpz', '2adefd4f4d88b174bbfd0a3f1ef573d521003c51d8d8210c2348ca712ad73a7e9855ba0c5aa3e3b452bc4eaed645475ccfe401149ef7be713e5c078a9fbbe832', '5FwOfDLff8ZhQVukGnL', 1, NULL, '2013-03-09 02:53:27')
273
273
   (0.1ms) RELEASE SAVEPOINT active_record_2
274
274
   (0.1ms) SAVEPOINT active_record_2
275
-  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'x0vEsUxDI5suYkttjd6E', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 5
275
+  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'G3YWLlckeeRgtpBNFG3', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 5
276
276
   (0.1ms) RELEASE SAVEPOINT active_record_2
277
-  (0.0ms) SAVEPOINT active_record_2
277
+  (0.1ms) SAVEPOINT active_record_2
278
278
  SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu4' AND `spud_menus`.`site_id` = 0) LIMIT 1
279
- SQL (0.2ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu4', 0, '2013-02-20 13:04:27')
279
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu4', 0, '2013-03-09 02:53:27')
280
280
   (0.1ms) RELEASE SAVEPOINT active_record_2
281
-  (0.2ms) SELECT COUNT(*) FROM `spud_menu_items` 
281
+  (0.1ms) SELECT COUNT(*) FROM `spud_menu_items` 
282
282
  Processing by Spud::Admin::MenuItemsController#create as HTML
283
283
  Parameters: {"spud_menu_item"=>{"name"=>"Menu Item 3", "parent_type"=>"SpudMenu", "parent_id"=>nil}, "menu_id"=>"4"}
284
- SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 5 LIMIT 1
285
- SpudMenu Load (0.3ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 4 LIMIT 1
284
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 5 LIMIT 1
285
+ SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 4 LIMIT 1
286
286
   (0.1ms) SAVEPOINT active_record_2
287
- SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:27', NULL, 0, 'Menu Item 3', 4, 'SpudMenu', 4, NULL, '2013-02-20 13:04:27', NULL)
287
+ SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:27', NULL, 0, 'Menu Item 3', 4, 'SpudMenu', 4, NULL, '2013-03-09 02:53:27', NULL)
288
288
   (0.1ms) RELEASE SAVEPOINT active_record_2
289
289
  Redirected to http://test.host/spud/admin/menus/4/menu_items
290
- Completed 302 Found in 50ms (ActiveRecord: 0.0ms)
291
-  (0.3ms) SELECT COUNT(*) FROM `spud_menu_items` 
292
-  (0.4ms) ROLLBACK
293
-  (0.1ms) ROLLBACK
294
-  (0.0ms) BEGIN
295
-  (0.0ms) BEGIN
296
-  (0.1ms) SAVEPOINT active_record_2
290
+ Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
291
+  (0.2ms) SELECT COUNT(*) FROM `spud_menu_items` 
292
+  (0.5ms) ROLLBACK
293
+  (0.0ms) ROLLBACK
294
+  (0.1ms) BEGIN
295
+  (0.1ms) BEGIN
296
+  (0.2ms) SAVEPOINT active_record_2
297
297
  SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
298
298
  SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
299
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'ec2d23d4ae4c055665c1de2236a464f1b08edb0f1600f612f193425268d59d5d91c7abde7dec223476f3329841469fb36a84f625cb260f6156ce1fe7be723f93' LIMIT 1
300
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'UTVQXrLRuNRHm2uPgCtq' LIMIT 1
301
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '53fba7acc064fe51fe4bd690a561ece86119c79dd41c6b67726d88a5f150672a5426387db2ea2dd5db6e5eeb71f11a63aed0e9305e717abedfbb6ba8ce29a925', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'AwyJI2OtBnoffdaALc4', 'f7YimTi31sJG7MXsiJ3L', 'ec2d23d4ae4c055665c1de2236a464f1b08edb0f1600f612f193425268d59d5d91c7abde7dec223476f3329841469fb36a84f625cb260f6156ce1fe7be723f93', 'UTVQXrLRuNRHm2uPgCtq', 1, NULL, '2013-02-20 13:04:27')
302
-  (0.2ms) RELEASE SAVEPOINT active_record_2
299
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'ba1a5395b49a2e997b1a548eb339949916800d8d3b1fa6c5010b222463ee407c5409c726423eacf64c6983971fe562eb34602835775617a8a61213c6cdee966d' LIMIT 1
300
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'jv6299yV4hmvIhOhwea2' LIMIT 1
301
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', 'bbc416f9a37f0a5d28e907776e479a8ec556fb2491236d031bd7b627decb25f75dbdb7fbc224e1823fc7b2eef26f082f45ae3e0164963f9862787cc8b6e11c48', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'SsErDGKocyHMtlTAfJw', 'MY94u2ZvOekqqBt3oI', 'ba1a5395b49a2e997b1a548eb339949916800d8d3b1fa6c5010b222463ee407c5409c726423eacf64c6983971fe562eb34602835775617a8a61213c6cdee966d', 'jv6299yV4hmvIhOhwea2', 1, NULL, '2013-03-09 02:53:27')
302
+  (0.1ms) RELEASE SAVEPOINT active_record_2
303
303
   (0.1ms) SAVEPOINT active_record_2
304
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = '23mvBlWM5tNidHH6bs', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 6
304
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'CIAOf8qkLVbC2yaMVH44', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 6
305
305
   (0.1ms) RELEASE SAVEPOINT active_record_2
306
306
   (0.1ms) SAVEPOINT active_record_2
307
- SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu5' AND `spud_menus`.`site_id` = 0) LIMIT 1
308
- SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu5', 0, '2013-02-20 13:04:27')
309
-  (0.1ms) RELEASE SAVEPOINT active_record_2
307
+ SpudMenu Exists (0.1ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu5' AND `spud_menus`.`site_id` = 0) LIMIT 1
308
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu5', 0, '2013-03-09 02:53:27')
309
+  (0.0ms) RELEASE SAVEPOINT active_record_2
310
310
   (0.1ms) SELECT COUNT(*) FROM `spud_menu_items`
311
311
  Processing by Spud::Admin::MenuItemsController#create as HTML
312
312
  Parameters: {"spud_menu_item"=>{"name"=>nil, "parent_type"=>"SpudMenu", "parent_id"=>nil}, "menu_id"=>"5"}
313
- SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 6 LIMIT 1
313
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 6 LIMIT 1
314
314
  SpudMenu Load (0.3ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 5 LIMIT 1
315
315
   (0.1ms) SAVEPOINT active_record_2
316
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2
317
- Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 0.0ms)
316
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
317
+ Completed 200 OK in 7ms (Views: 0.8ms | ActiveRecord: 0.0ms)
318
318
   (0.2ms) SELECT COUNT(*) FROM `spud_menu_items` 
319
-  (0.8ms) ROLLBACK
319
+  (0.4ms) ROLLBACK
320
320
   (0.0ms) ROLLBACK
321
321
   (0.0ms) BEGIN
322
322
   (0.0ms) BEGIN
323
323
   (0.1ms) SAVEPOINT active_record_2
324
324
  SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
325
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
326
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '161b2cd74e902c012cfc099beb916adc413ba50150c8e72777ec544dca82ef78418c9d0e9d50229526dd5e904f8029bc127b8259146ce6e77e34b992a55dbbb0' LIMIT 1
327
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '4a17OmwT9KZtsyWxo16x' LIMIT 1
328
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', 'b0ab9698d450ddbf24f2f31d0ca36483183a93f7ade756be2016e6fc7fb25a18a3b568c0f20e3cc83e748f988057b7c6183eb367df9efc7076d8c4869e749a10', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'VM7q7PfmuPMg0YaqCANn', 'H4Di5EKc3QXwLHt7royX', '161b2cd74e902c012cfc099beb916adc413ba50150c8e72777ec544dca82ef78418c9d0e9d50229526dd5e904f8029bc127b8259146ce6e77e34b992a55dbbb0', '4a17OmwT9KZtsyWxo16x', 1, NULL, '2013-02-20 13:04:27')
329
-  (0.2ms) RELEASE SAVEPOINT active_record_2
330
-  (0.2ms) SAVEPOINT active_record_2
331
-  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = '86MEnHxccTjpEht64QQT', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 7
325
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
326
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '0d3bffca470d6719b59f4630776494da8859eb80e730167c13fda11ff628836ce840390dc5330b3129f2a65d9a49093e343c73dad2e9241c5f3d4e897deb4e7f' LIMIT 1
327
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'pYj9a5F3F5gEOANTHoe' LIMIT 1
328
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', '763d18d9b15894e0df675cdd1fa60417d6b3d291a1c233acbc83aea147683eeef4f288fff595e4266504fcc62bcd5f74bd172959342c0be100898922dc344fbf', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'syILERcWM1wiublGc3Gr', 'uX6rZuhaC7t57CHT2Vus', '0d3bffca470d6719b59f4630776494da8859eb80e730167c13fda11ff628836ce840390dc5330b3129f2a65d9a49093e343c73dad2e9241c5f3d4e897deb4e7f', 'pYj9a5F3F5gEOANTHoe', 1, NULL, '2013-03-09 02:53:27')
329
+  (0.1ms) RELEASE SAVEPOINT active_record_2
330
+  (0.3ms) SAVEPOINT active_record_2
331
+  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'KcR1QWYQiCiAdjfpAVB', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 7
332
332
   (0.1ms) RELEASE SAVEPOINT active_record_2
333
333
   (0.1ms) SAVEPOINT active_record_2
334
334
  SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu6' AND `spud_menus`.`site_id` = 0) LIMIT 1
335
- SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu6', 0, '2013-02-20 13:04:27')
336
-  (0.1ms) RELEASE SAVEPOINT active_record_2
335
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu6', 0, '2013-03-09 02:53:27')
336
+  (0.0ms) RELEASE SAVEPOINT active_record_2
337
337
   (0.0ms) SAVEPOINT active_record_2
338
- SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:27', NULL, 0, 'Menu Item 4', 6, 'SpudMenu', 1, NULL, '2013-02-20 13:04:27', NULL)
339
-  (0.1ms) RELEASE SAVEPOINT active_record_2
338
+ SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:27', NULL, 0, 'Menu Item 4', 6, 'SpudMenu', 1, NULL, '2013-03-09 02:53:27', NULL)
339
+  (0.0ms) RELEASE SAVEPOINT active_record_2
340
340
  Processing by Spud::Admin::MenuItemsController#create as HTML
341
341
  Parameters: {"spud_menu_item"=>{"name"=>"Menu Item 5", "parent_type"=>"SpudMenu", "parent_id"=>nil, "menu_order"=>nil}, "menu_id"=>"6"}
342
- SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 7 LIMIT 1
342
+ SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 7 LIMIT 1
343
343
  SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 6 LIMIT 1
344
344
  SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 6 LIMIT 1
345
345
  SpudMenuItem Load (0.3ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`parent_id` = 6 AND `spud_menu_items`.`parent_type` = 'SpudMenu' ORDER BY menu_order desc LIMIT 1
346
-  (0.1ms) SAVEPOINT active_record_2
347
- SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:27', NULL, 1, 'Menu Item 5', 6, 'SpudMenu', 6, NULL, '2013-02-20 13:04:27', NULL)
348
-  (0.1ms) RELEASE SAVEPOINT active_record_2
346
+  (0.0ms) SAVEPOINT active_record_2
347
+ SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:27', NULL, 1, 'Menu Item 5', 6, 'SpudMenu', 6, NULL, '2013-03-09 02:53:27', NULL)
348
+  (0.2ms) RELEASE SAVEPOINT active_record_2
349
349
  Redirected to http://test.host/spud/admin/menus/6/menu_items
350
350
  Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
351
-  (0.4ms) ROLLBACK
352
-  (0.0ms) ROLLBACK
351
+  (0.5ms) ROLLBACK
352
+  (0.2ms) ROLLBACK
353
353
   (0.0ms) BEGIN
354
354
   (0.0ms) BEGIN
355
-  (0.2ms) SAVEPOINT active_record_2
356
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
357
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
358
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'e7f88134f7cf78c877681ed39325bd5c01c18807a128960550a2c0aef8be7ebd3e1bc0a6fbe39ab145ae03a7c1fbda01ddf6d831d4b01007bc596de5ae7bcf73' LIMIT 1
359
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'IrNU6VUshEAWgdQygaP' LIMIT 1
360
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', 'cc8bd59def12bf63141f172c11c9152709189d09a027512e8cf5933ad1ea886f02961abf2b1cd9196d9b66dd1d1d334f40226923c5bf2aa8d3f80a0f27f21dec', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'waeEKE3fVHFJoqaPp9eT', 'xlhVg2TatBuxFDnVfqrL', 'e7f88134f7cf78c877681ed39325bd5c01c18807a128960550a2c0aef8be7ebd3e1bc0a6fbe39ab145ae03a7c1fbda01ddf6d831d4b01007bc596de5ae7bcf73', 'IrNU6VUshEAWgdQygaP', 1, NULL, '2013-02-20 13:04:27')
355
+  (0.1ms) SAVEPOINT active_record_2
356
+ SpudUser Exists (0.4ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
357
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
358
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '23df5073e9bc87f07116a6bc5a406cbfb59381484292653e4468ff5eee1b4ed5d1e75a40ff073c0b2648d8395498c249d8e81587098805b7fe98255c7611507d' LIMIT 1
359
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'mIKf07tV7L5NCGhg5ef' LIMIT 1
360
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', '584d0645695d9091bfee7e8adc9777051d0e00a2fd364bda966998520dd11804685fc70b155ea12bd5a8361843d45c9af85bd0639d813bd4f82545ecbbde0076', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'KglI8dpfG4TuBAv3GJ', 'jbszlBhJFMOAdirv2dJa', '23df5073e9bc87f07116a6bc5a406cbfb59381484292653e4468ff5eee1b4ed5d1e75a40ff073c0b2648d8395498c249d8e81587098805b7fe98255c7611507d', 'mIKf07tV7L5NCGhg5ef', 1, NULL, '2013-03-09 02:53:27')
361
361
   (0.1ms) RELEASE SAVEPOINT active_record_2
362
362
   (0.1ms) SAVEPOINT active_record_2
363
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'XQX0qdIPb3kM2p3ODO6', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 8
364
-  (0.0ms) RELEASE SAVEPOINT active_record_2
365
-  (0.0ms) SAVEPOINT active_record_2
363
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'Kbcr72yuq6VE8ZB9OMvu', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 8
364
+  (0.1ms) RELEASE SAVEPOINT active_record_2
365
+  (0.1ms) SAVEPOINT active_record_2
366
366
  SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu7' AND `spud_menus`.`site_id` = 0) LIMIT 1
367
- SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu7', 0, '2013-02-20 13:04:27')
367
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu7', 0, '2013-03-09 02:53:27')
368
368
   (0.1ms) RELEASE SAVEPOINT active_record_2
369
369
   (0.1ms) SAVEPOINT active_record_2
370
370
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
371
371
  SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1
372
372
  SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
373
373
  SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` = 0) LIMIT 1
374
- SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:27', NULL, 'html', NULL, NULL, NULL, 'Page2', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:27', NULL, 'page2', 0, 0)
375
-  (0.1ms) RELEASE SAVEPOINT active_record_2
374
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:27', NULL, 'html', NULL, NULL, NULL, 'Page2', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:27', NULL, 'page2', 0, 0)
375
+  (0.0ms) RELEASE SAVEPOINT active_record_2
376
376
  Processing by Spud::Admin::MenuItemsController#create as HTML
377
377
  Parameters: {"spud_menu_item"=>{"name"=>nil, "parent_type"=>"SpudMenu", "parent_id"=>"1", "spud_page_id"=>"11"}, "menu_id"=>"7"}
378
- SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 8 LIMIT 1
378
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 8 LIMIT 1
379
379
  SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 7 LIMIT 1
380
380
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 11 LIMIT 1
381
381
   (0.1ms) SAVEPOINT active_record_2
382
- SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:27', NULL, 0, 'Page2', 1, 'SpudMenuItem', 7, 11, '2013-02-20 13:04:27', NULL)
382
+ SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:27', NULL, 0, 'Page2', 1, 'SpudMenuItem', 7, 11, '2013-03-09 02:53:27', NULL)
383
383
   (0.1ms) RELEASE SAVEPOINT active_record_2
384
384
  Redirected to http://test.host/spud/admin/menus/7/menu_items
385
- Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
386
-  (1.2ms) ROLLBACK
385
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
386
+  (0.4ms) ROLLBACK
387
387
   (0.1ms) ROLLBACK
388
-  (0.1ms) BEGIN
388
+  (0.0ms) BEGIN
389
389
   (0.0ms) BEGIN
390
390
   (0.1ms) SAVEPOINT active_record_2
391
391
  SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
392
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
393
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '3b10ce9ab33645b2f884f196d61596ffe5f3a2e018cf5258ab51a1ba43140b2178af52e67e3d3c8af32c89afcb8c4190fdebb9b9369f026f47b9cfe046818148' LIMIT 1
394
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'MzAx2ZNFMVwyNg4zVhg4' LIMIT 1
395
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '6509db4723049265bf8ef8c864372ac474bd5c10d4789f3a9986e955b05408f182af2b6edfb23fb6837b1d05b876b6d71ac1b085156fbc816717a0f406e741bf', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'LlxQt8lA74xwUjmtn1oQ', 'ekkd3ZdID0opzUsUJwN', '3b10ce9ab33645b2f884f196d61596ffe5f3a2e018cf5258ab51a1ba43140b2178af52e67e3d3c8af32c89afcb8c4190fdebb9b9369f026f47b9cfe046818148', 'MzAx2ZNFMVwyNg4zVhg4', 1, NULL, '2013-02-20 13:04:27')
396
-  (0.1ms) RELEASE SAVEPOINT active_record_2
397
-  (0.2ms) SAVEPOINT active_record_2
398
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'jAg9t6hwV60aRTWXNlYg', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 9
392
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
393
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '23762708cca8e81862e1993f5101c3c43be20e21d28bd0606278e74a29da17b98e78b795c6768a2889e151f110593b1ccc08e9ebc28e1c897241e9b53d00b8d6' LIMIT 1
394
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '3UBMLYa8qkD05xJzqnW' LIMIT 1
395
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', 'd51dc3862904e8cb7705a62756e0d266abd8286b03aa07bc244505164fc32dbbe6b0d027cf35c50b1dd4dfcda5f1b65adda539a3c58257f6cffef75bd40b9703', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'aCV89fEbHzHfLVk7yeMc', 'LAsVll8JcKhtaSZ0TdyB', '23762708cca8e81862e1993f5101c3c43be20e21d28bd0606278e74a29da17b98e78b795c6768a2889e151f110593b1ccc08e9ebc28e1c897241e9b53d00b8d6', '3UBMLYa8qkD05xJzqnW', 1, NULL, '2013-03-09 02:53:27')
396
+  (0.0ms) RELEASE SAVEPOINT active_record_2
397
+  (0.1ms) SAVEPOINT active_record_2
398
+  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'C6MQJbSCs5kEJssZg3v', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 9
399
399
   (0.1ms) RELEASE SAVEPOINT active_record_2
400
-  (0.0ms) SAVEPOINT active_record_2
401
- SpudMenu Exists (0.1ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu8' AND `spud_menus`.`site_id` = 0) LIMIT 1
402
- SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu8', 0, '2013-02-20 13:04:27')
400
+  (0.1ms) SAVEPOINT active_record_2
401
+ SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu8' AND `spud_menus`.`site_id` = 0) LIMIT 1
402
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu8', 0, '2013-03-09 02:53:27')
403
403
   (0.1ms) RELEASE SAVEPOINT active_record_2
404
-  (0.0ms) SAVEPOINT active_record_2
405
- SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:27', NULL, 0, 'Menu Item 6', 8, 'SpudMenu', 1, NULL, '2013-02-20 13:04:27', NULL)
406
-  (0.0ms) RELEASE SAVEPOINT active_record_2
404
+  (0.1ms) SAVEPOINT active_record_2
405
+ SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:27', NULL, 0, 'Menu Item 6', 8, 'SpudMenu', 1, NULL, '2013-03-09 02:53:27', NULL)
406
+  (0.1ms) RELEASE SAVEPOINT active_record_2
407
407
  Processing by Spud::Admin::MenuItemsController#create as HTML
408
408
  Parameters: {"spud_menu_item"=>{"name"=>"Menu Item 7", "parent_type"=>"SpudMenu", "parent_id"=>"7"}, "menu_id"=>"8"}
409
- SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 9 LIMIT 1
409
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 9 LIMIT 1
410
410
  SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 8 LIMIT 1
411
411
   (0.1ms) SAVEPOINT active_record_2
412
- SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:27', NULL, 0, 'Menu Item 7', 7, 'SpudMenuItem', 8, NULL, '2013-02-20 13:04:27', NULL)
412
+ SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:27', NULL, 0, 'Menu Item 7', 7, 'SpudMenuItem', 8, NULL, '2013-03-09 02:53:27', NULL)
413
413
   (0.1ms) RELEASE SAVEPOINT active_record_2
414
414
  Redirected to http://test.host/spud/admin/menus/8/menu_items
415
- Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
416
- SpudMenuItem Load (0.3ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`id` = 7 LIMIT 1
417
-  (0.9ms) ROLLBACK
418
-  (0.0ms) ROLLBACK
415
+ Completed 302 Found in 6ms (ActiveRecord: 0.0ms)
416
+ SpudMenuItem Load (0.2ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`id` = 7 LIMIT 1
417
+  (0.4ms) ROLLBACK
418
+  (0.1ms) ROLLBACK
419
419
   (0.0ms) BEGIN
420
-  (0.0ms) BEGIN
421
-  (0.1ms) SAVEPOINT active_record_2
422
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
423
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
424
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '885755ede98aa33213f629e52a0fe46b3d841900451657c6fabef14c940c4ffb152f2eeb64603e65c8cbd4a5dc91d898abf96f97be92d501d1c047ba781eee03' LIMIT 1
425
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'SJjRh6FyA2t2LXfwHt' LIMIT 1
426
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '4d87d710ecc7fd2b6a2303d56a6e41b7d16b6dda39c2fab7c065f3eb6b03d6e48d81b92e43a43988cf12bd7491683212c513ed362fc2f2523d7deb6fca0ca8e6', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, '56CHtBJ35zX5ngmIAjp', 'UOI177BdSsYqFaq8Rwj', '885755ede98aa33213f629e52a0fe46b3d841900451657c6fabef14c940c4ffb152f2eeb64603e65c8cbd4a5dc91d898abf96f97be92d501d1c047ba781eee03', 'SJjRh6FyA2t2LXfwHt', 1, NULL, '2013-02-20 13:04:27')
420
+  (0.1ms) BEGIN
421
+  (0.2ms) SAVEPOINT active_record_2
422
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
423
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
424
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '0f34d757a35737423faaca89d9821f4532ae40033bdfbc06bab9f6949821b3a480d3f451919d8060cc4d4ad05db6ba391044bd809fb497ad339ab1c4b50083e3' LIMIT 1
425
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'JVxaz0G3eWHS98E9XKAs' LIMIT 1
426
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', 'd288d978632d79bead1f8c48e70de37a7a9c7aeb0db2cc93cafec6ced41a343993c4ec72a1f5acc16f0b20faa598c9353ada3415846f27f344ae58ea6bdc33c6', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'MBjnNiopRVIe6gyXoKXD', 'uXcfi5BTdDiybHUFZkJ', '0f34d757a35737423faaca89d9821f4532ae40033bdfbc06bab9f6949821b3a480d3f451919d8060cc4d4ad05db6ba391044bd809fb497ad339ab1c4b50083e3', 'JVxaz0G3eWHS98E9XKAs', 1, NULL, '2013-03-09 02:53:27')
427
427
   (0.1ms) RELEASE SAVEPOINT active_record_2
428
-  (0.2ms) SAVEPOINT active_record_2
429
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'Sc5Cm83nZzriXQMrSKzu', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 10
428
+  (0.1ms) SAVEPOINT active_record_2
429
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'Hmox13w6XG7r32anzDn', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 10
430
430
   (0.1ms) RELEASE SAVEPOINT active_record_2
431
431
   (0.1ms) SAVEPOINT active_record_2
432
432
  SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu9' AND `spud_menus`.`site_id` = 0) LIMIT 1
433
- SQL (0.2ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu9', 0, '2013-02-20 13:04:27')
433
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu9', 0, '2013-03-09 02:53:27')
434
434
   (0.1ms) RELEASE SAVEPOINT active_record_2
435
-  (0.1ms) SAVEPOINT active_record_2
436
- SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:27', NULL, 0, 'Menu Item 8', 1, 'SpudMenu', 1, NULL, '2013-02-20 13:04:27', NULL)
437
-  (0.0ms) RELEASE SAVEPOINT active_record_2
438
-  (0.0ms) SAVEPOINT active_record_2
439
- SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:27', NULL, 0, 'Menu Item 9', 1, 'SpudMenu', 1, NULL, '2013-02-20 13:04:27', NULL)
435
+  (0.0ms) SAVEPOINT active_record_2
436
+ SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:27', NULL, 0, 'Menu Item 8', 1, 'SpudMenu', 1, NULL, '2013-03-09 02:53:27', NULL)
437
+  (0.1ms) RELEASE SAVEPOINT active_record_2
438
+  (0.1ms) SAVEPOINT active_record_2
439
+ SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:27', NULL, 0, 'Menu Item 9', 1, 'SpudMenu', 1, NULL, '2013-03-09 02:53:27', NULL)
440
440
   (0.1ms) RELEASE SAVEPOINT active_record_2
441
441
  Processing by Spud::Admin::MenuItemsController#edit as HTML
442
442
  Parameters: {"menu_id"=>"9", "id"=>"10"}
443
- SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 10 LIMIT 1
444
- SpudMenu Load (0.3ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 9 LIMIT 1
445
- SpudMenuItem Load (0.2ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`id` = 10 LIMIT 1
446
- Completed 200 OK in 7ms (Views: 1.8ms | ActiveRecord: 0.7ms)
447
-  (0.9ms) ROLLBACK
443
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 10 LIMIT 1
444
+ SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 9 LIMIT 1
445
+ SpudMenuItem Load (0.1ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`id` = 10 LIMIT 1
446
+ Completed 200 OK in 6ms (Views: 1.2ms | ActiveRecord: 0.5ms)
447
+  (0.5ms) ROLLBACK
448
448
   (0.1ms) ROLLBACK
449
-  (0.0ms) BEGIN
450
-  (0.0ms) BEGIN
451
-  (0.2ms) SAVEPOINT active_record_2
452
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
453
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
454
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'f6dee69ed3d143623cb583b1a5fb9342364b1a0cdd04890374f2fd0fbed156d0cc78aa45c2d61e918504a051c19583c3e946439e1ca8fe391249b8cc8df4949e' LIMIT 1
455
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'uhzsDqXH6BLHduqW9iHB' LIMIT 1
456
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '5efbfe4f33c8dcce9a2f4446b4c62f92e36e28c9e754777f1af5c48aaed63cf9cec87e1472dfa5cf218bafea9305c8ef63386a971e7e86cda7b31f8bbfcc325d', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'i7vNTPQqBdECFQKdH6m', 'tarF8PN8HXeEJQYkyV6w', 'f6dee69ed3d143623cb583b1a5fb9342364b1a0cdd04890374f2fd0fbed156d0cc78aa45c2d61e918504a051c19583c3e946439e1ca8fe391249b8cc8df4949e', 'uhzsDqXH6BLHduqW9iHB', 1, NULL, '2013-02-20 13:04:27')
457
-  (0.2ms) RELEASE SAVEPOINT active_record_2
458
-  (0.2ms) SAVEPOINT active_record_2
459
-  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'kFSHjMEJTbinmRk6DNN', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 11
460
-  (0.1ms) RELEASE SAVEPOINT active_record_2
449
+  (0.1ms) BEGIN
450
+  (0.1ms) BEGIN
461
451
   (0.1ms) SAVEPOINT active_record_2
452
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
453
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
454
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '36d7940489721e4a451ea1f9ad2a593a92a1eb430c03652acba1aa08e33e538e08136263e27ce7934f0aa29e7d44825d4226988794bd8513b06a626492393308' LIMIT 1
455
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'e9Gj30H5C3bM75foaJqd' LIMIT 1
456
+ SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', 'b215dd56a1b0eaf815010b3faebd2efc643bfab900131a7646517a5cfc22c8d8cad55db27e476dfed9c291b6915cdae7356416619eb08b3273805b19568b4c6b', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, '3fkcCQJ0HwxgW3mMGbvv', 'rJPbi5Fpu7TU3MaBSXwQ', '36d7940489721e4a451ea1f9ad2a593a92a1eb430c03652acba1aa08e33e538e08136263e27ce7934f0aa29e7d44825d4226988794bd8513b06a626492393308', 'e9Gj30H5C3bM75foaJqd', 1, NULL, '2013-03-09 02:53:27')
457
+  (0.1ms) RELEASE SAVEPOINT active_record_2
458
+  (0.1ms) SAVEPOINT active_record_2
459
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'ppjwvBurSkU6q12hoL', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 11
460
+  (0.1ms) RELEASE SAVEPOINT active_record_2
461
+  (0.0ms) SAVEPOINT active_record_2
462
462
  SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu10' AND `spud_menus`.`site_id` = 0) LIMIT 1
463
- SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu10', 0, '2013-02-20 13:04:27')
463
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu10', 0, '2013-03-09 02:53:27')
464
464
   (0.1ms) RELEASE SAVEPOINT active_record_2
465
465
  Processing by Spud::Admin::MenuItemsController#edit as HTML
466
466
  Parameters: {"menu_id"=>"10", "id"=>"345"}
@@ -469,105 +469,105 @@ Processing by Spud::Admin::MenuItemsController#edit as HTML
469
469
  SpudMenuItem Load (0.1ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`id` = 345 LIMIT 1
470
470
  Redirected to http://test.host/spud/admin/menus/10/menu_items
471
471
  Filter chain halted as :load_menu_item rendered or redirected
472
- Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
473
-  (0.4ms) ROLLBACK
474
-  (0.0ms) ROLLBACK
475
-  (0.0ms) BEGIN
476
-  (0.0ms) BEGIN
477
-  (0.1ms) SAVEPOINT active_record_2
472
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
473
+  (0.5ms) ROLLBACK
474
+  (0.1ms) ROLLBACK
475
+  (0.1ms) BEGIN
476
+  (0.1ms) BEGIN
477
+  (0.0ms) SAVEPOINT active_record_2
478
478
  SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
479
479
  SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
480
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '3c80d5757ed1904d2d602dec65e457e61a37050a74240c3c52e58f3115b7486154743e42e87e952a3a0d65388366ab950ee9d9e7c44829ef14d0382ddfbc9da6' LIMIT 1
481
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'C5d9U0j7khM4oQK5Bkw' LIMIT 1
482
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '694789ed67ecaa9199364268164378f0c7aa8ba57f2f2ef759a5c7d7bd66429eaa90b61401dd878d6e3dadc2837d37f77259dc133b70994e4febedb4cf654f2f', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'NKDDNt0JiAjSn602lKUW', 'yQOnc5cuVAeEjJdvtsO', '3c80d5757ed1904d2d602dec65e457e61a37050a74240c3c52e58f3115b7486154743e42e87e952a3a0d65388366ab950ee9d9e7c44829ef14d0382ddfbc9da6', 'C5d9U0j7khM4oQK5Bkw', 1, NULL, '2013-02-20 13:04:27')
480
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '4b0ef49cc11558787c379e32b86ad671d6b6f1a42d83282295c2f52d5fd182c899628938383ce6dcd3265553a00e9ba9a2ea2fae397dd6d35cffdb71936863f4' LIMIT 1
481
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'wxay3QUrdU5vFDCO8X63' LIMIT 1
482
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', '4f83e13268961e3bf148c864afa075b41c8c9406d32adcccbc103b2ab5f857f96580bdf43c27c7123c4871dc76f9d05ef52beddc943d9b56263026e421723c32', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, '2xGUmAM6KJd0H3YlRda', 'MxZyLf1v0CUaQTXjsNd0', '4b0ef49cc11558787c379e32b86ad671d6b6f1a42d83282295c2f52d5fd182c899628938383ce6dcd3265553a00e9ba9a2ea2fae397dd6d35cffdb71936863f4', 'wxay3QUrdU5vFDCO8X63', 1, NULL, '2013-03-09 02:53:27')
483
483
   (0.1ms) RELEASE SAVEPOINT active_record_2
484
484
   (0.1ms) SAVEPOINT active_record_2
485
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'ldkowgSmLTV1MjCftyR8', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 12
485
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'X7vVa58WEXyXlbtm6YQt', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 12
486
486
   (0.1ms) RELEASE SAVEPOINT active_record_2
487
-  (0.1ms) SAVEPOINT active_record_2
487
+  (0.0ms) SAVEPOINT active_record_2
488
488
  SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu11' AND `spud_menus`.`site_id` = 0) LIMIT 1
489
- SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu11', 0, '2013-02-20 13:04:27')
489
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu11', 0, '2013-03-09 02:53:27')
490
490
   (0.1ms) RELEASE SAVEPOINT active_record_2
491
491
   (0.0ms) SAVEPOINT active_record_2
492
- SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:27', NULL, 0, 'Menu Item 10', 1, 'SpudMenu', 1, NULL, '2013-02-20 13:04:27', NULL)
492
+ SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:27', NULL, 0, 'Menu Item 10', 1, 'SpudMenu', 1, NULL, '2013-03-09 02:53:27', NULL)
493
493
   (0.1ms) RELEASE SAVEPOINT active_record_2
494
494
  Processing by Spud::Admin::MenuItemsController#update as HTML
495
495
  Parameters: {"spud_menu_item"=>{"parent_type"=>"SpudMenu", "parent_id"=>nil, "item_type"=>nil, "spud_page_id"=>nil, "menu_order"=>"0", "url"=>nil, "name"=>"MyMenu", "classes"=>nil}, "menu_id"=>"11", "id"=>"11"}
496
496
  SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 12 LIMIT 1
497
- SpudMenu Load (0.3ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 11 LIMIT 1
498
- SpudMenuItem Load (0.2ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`id` = 11 LIMIT 1
497
+ SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 11 LIMIT 1
498
+ SpudMenuItem Load (0.1ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`id` = 11 LIMIT 1
499
499
   (0.1ms) SAVEPOINT active_record_2
500
-  (0.3ms) UPDATE `spud_menu_items` SET `parent_id` = 11, `name` = 'MyMenu', `spud_menu_id` = 11, `updated_at` = '2013-02-20 13:04:27' WHERE `spud_menu_items`.`id` = 11
501
-  (0.2ms) RELEASE SAVEPOINT active_record_2
500
+  (0.3ms) UPDATE `spud_menu_items` SET `parent_id` = 11, `name` = 'MyMenu', `spud_menu_id` = 11, `updated_at` = '2013-03-09 02:53:27' WHERE `spud_menu_items`.`id` = 11
501
+  (0.1ms) RELEASE SAVEPOINT active_record_2
502
502
  Redirected to http://test.host/spud/admin/menus/11/menu_items
503
- Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
503
+ Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
504
504
  SpudMenuItem Load (0.2ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`id` = 11 LIMIT 1
505
-  (1.1ms) ROLLBACK
506
-  (0.2ms) ROLLBACK
505
+  (0.6ms) ROLLBACK
506
+  (0.1ms) ROLLBACK
507
507
   (0.0ms) BEGIN
508
-  (0.1ms) BEGIN
508
+  (0.0ms) BEGIN
509
509
   (0.1ms) SAVEPOINT active_record_2
510
- SpudUser Exists (0.4ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
511
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
512
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '196e145342f5b30ad43b74e018fbfacf0e2dcedb6e09cb1c8614ab721ada83990b11eab01aee06f191d0403d11fafa9b9627488b38cd9b89ece98201976f9f30' LIMIT 1
513
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'ws9HGEDdGfVYSIfBKZCN' LIMIT 1
514
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '857f1aade9b112604ddfe214767afdf6acc65377e04a0b16ae4953912011b16f767bade33e1a3940b7152b92a6b4f126566b244d4c837ccebb9a0cb084426d9e', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, '1Zp22fPzaph6OR7n', 'vrHs8PCfihCbJdLxhirT', '196e145342f5b30ad43b74e018fbfacf0e2dcedb6e09cb1c8614ab721ada83990b11eab01aee06f191d0403d11fafa9b9627488b38cd9b89ece98201976f9f30', 'ws9HGEDdGfVYSIfBKZCN', 1, NULL, '2013-02-20 13:04:27')
510
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
511
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
512
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '491bd667112084b62d8871cbc99c8780c8236457b8446b2f81427c89ed82d8ed125b4fb0334512f8b6c74a3fe476ab96375ca8b49e353a3a35363d820f0b1ddc' LIMIT 1
513
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'qAe66OS64QTK2Z9Q6u2e' LIMIT 1
514
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', 'aa02490abb3e86f1b3e9dd34e516b06a2fe3cb875deb68f6196ae1b67da9db7b82e7c9cdfc94eeb6d5778ccfac3d4b70b49001f1aaffd12020a943f56a70a98f', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'AXAqOQqJwQDaIt7aKrSw', 'Tkddq8NRrRvJjP8wUs', '491bd667112084b62d8871cbc99c8780c8236457b8446b2f81427c89ed82d8ed125b4fb0334512f8b6c74a3fe476ab96375ca8b49e353a3a35363d820f0b1ddc', 'qAe66OS64QTK2Z9Q6u2e', 1, NULL, '2013-03-09 02:53:27')
515
515
   (0.1ms) RELEASE SAVEPOINT active_record_2
516
-  (0.1ms) SAVEPOINT active_record_2
517
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'dLzq9VExLy2k5tQ9hZsU', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 13
516
+  (0.2ms) SAVEPOINT active_record_2
517
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'TiE1u9V5N8j9zSbNqfa', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 13
518
518
   (0.1ms) RELEASE SAVEPOINT active_record_2
519
519
   (0.1ms) SAVEPOINT active_record_2
520
520
  SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu12' AND `spud_menus`.`site_id` = 0) LIMIT 1
521
- SQL (0.2ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu12', 0, '2013-02-20 13:04:27')
521
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu12', 0, '2013-03-09 02:53:27')
522
522
   (0.1ms) RELEASE SAVEPOINT active_record_2
523
523
   (0.1ms) SAVEPOINT active_record_2
524
- SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:27', NULL, 0, 'Menu Item 11', 1, 'SpudMenu', 1, NULL, '2013-02-20 13:04:27', NULL)
524
+ SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:27', NULL, 0, 'Menu Item 11', 1, 'SpudMenu', 1, NULL, '2013-03-09 02:53:27', NULL)
525
525
   (0.1ms) RELEASE SAVEPOINT active_record_2
526
-  (0.0ms) SAVEPOINT active_record_2
527
- SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:27', NULL, 0, 'Menu Item 12', 1, 'SpudMenu', 1, NULL, '2013-02-20 13:04:27', NULL)
526
+  (0.1ms) SAVEPOINT active_record_2
527
+ SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:27', NULL, 0, 'Menu Item 12', 1, 'SpudMenu', 1, NULL, '2013-03-09 02:53:27', NULL)
528
528
   (0.1ms) RELEASE SAVEPOINT active_record_2
529
529
  SpudMenu Load (0.1ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 1 LIMIT 1
530
530
  Processing by Spud::Admin::MenuItemsController#update as HTML
531
531
  Parameters: {"spud_menu_item"=>{"parent_type"=>"SpudMenu", "parent_id"=>"12", "item_type"=>nil, "spud_page_id"=>nil, "menu_order"=>"0", "url"=>nil, "name"=>"Menu Item 12", "classes"=>nil}, "menu_id"=>"12", "id"=>"13"}
532
532
  SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 13 LIMIT 1
533
533
  SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 12 LIMIT 1
534
- SpudMenuItem Load (0.2ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`id` = 13 LIMIT 1
534
+ SpudMenuItem Load (0.1ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`id` = 13 LIMIT 1
535
535
   (0.1ms) SAVEPOINT active_record_2
536
-  (0.2ms) UPDATE `spud_menu_items` SET `parent_type` = 'SpudMenuItem', `parent_id` = 12, `spud_menu_id` = 12, `updated_at` = '2013-02-20 13:04:27' WHERE `spud_menu_items`.`id` = 13
537
-  (0.0ms) RELEASE SAVEPOINT active_record_2
536
+  (0.2ms) UPDATE `spud_menu_items` SET `parent_type` = 'SpudMenuItem', `parent_id` = 12, `spud_menu_id` = 12, `updated_at` = '2013-03-09 02:53:27' WHERE `spud_menu_items`.`id` = 13
537
+  (0.1ms) RELEASE SAVEPOINT active_record_2
538
538
  Redirected to http://test.host/spud/admin/menus/12/menu_items
539
539
  Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
540
540
  SpudMenuItem Load (0.2ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`id` = 13 LIMIT 1
541
- SpudMenuItem Load (0.3ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`id` = 12 LIMIT 1
542
-  (0.8ms) ROLLBACK
541
+ SpudMenuItem Load (0.2ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`id` = 12 LIMIT 1
542
+  (0.3ms) ROLLBACK
543
543
   (0.0ms) ROLLBACK
544
544
   (0.0ms) BEGIN
545
-  (0.1ms) BEGIN
546
-  (0.2ms) SAVEPOINT active_record_2
547
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
545
+  (0.0ms) BEGIN
546
+  (0.1ms) SAVEPOINT active_record_2
547
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
548
548
  SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
549
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '2553851c1c87251b0948e41fecc31ba1c69790049dae349e943ef9f2886da9d1f846966c38e0ef98499c277e092c4bb42644d3947a5ad6dad4bdb0bc2263d47f' LIMIT 1
550
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'jWAcqKG2c9m0UcdL4vp' LIMIT 1
551
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', 'f33a8592c4e239fbda2ce5a21b046fdf2e18ce43442fdc6de9c0f0b376212c046d5ab816e9658b00d165abf7fa4f067583e3a0beafaefce680fe5b1814d075d7', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'flCQ5qDYIWayPzyvUF13', '8NEhwMgTLs77gPhc3D9C', '2553851c1c87251b0948e41fecc31ba1c69790049dae349e943ef9f2886da9d1f846966c38e0ef98499c277e092c4bb42644d3947a5ad6dad4bdb0bc2263d47f', 'jWAcqKG2c9m0UcdL4vp', 1, NULL, '2013-02-20 13:04:27')
552
-  (0.2ms) RELEASE SAVEPOINT active_record_2
549
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'a165030776594f3ddbf6ee086165140b6c63c5237b0f026d351f1ed450aac06114c828faacbc9b2a9eca0af8782d8781b5ba90aa5b0413eb5a849ff93041fb8e' LIMIT 1
550
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'cOF10FyJRttXrCG2tvV' LIMIT 1
551
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', 'a25bf8e9903322618ef3e15eecae451a08007768ed5b184b8807373330fec01dd79c20bd46cc852352751b392e829944b558428e26fa23a763919971f589d6eb', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'SN1mRTchskffszSeHE', 'eE3ARkagXHBV0pfFdoCs', 'a165030776594f3ddbf6ee086165140b6c63c5237b0f026d351f1ed450aac06114c828faacbc9b2a9eca0af8782d8781b5ba90aa5b0413eb5a849ff93041fb8e', 'cOF10FyJRttXrCG2tvV', 1, NULL, '2013-03-09 02:53:27')
552
+  (0.0ms) RELEASE SAVEPOINT active_record_2
553
553
   (0.2ms) SAVEPOINT active_record_2
554
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'q4tRkF8tCXzVyGO9XrG', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 14
555
-  (0.0ms) RELEASE SAVEPOINT active_record_2
556
-  (0.0ms) SAVEPOINT active_record_2
554
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'CYojaSMeUMokY6r5t6T7', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 14
555
+  (0.1ms) RELEASE SAVEPOINT active_record_2
556
+  (0.1ms) SAVEPOINT active_record_2
557
557
  SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu13' AND `spud_menus`.`site_id` = 0) LIMIT 1
558
- SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu13', 0, '2013-02-20 13:04:27')
558
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu13', 0, '2013-03-09 02:53:27')
559
559
   (0.1ms) RELEASE SAVEPOINT active_record_2
560
560
   (0.1ms) SAVEPOINT active_record_2
561
- SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:27', NULL, 0, 'Menu Item 13', 13, 'SpudMenu', 1, NULL, '2013-02-20 13:04:27', NULL)
561
+ SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:27', NULL, 0, 'Menu Item 13', 13, 'SpudMenu', 1, NULL, '2013-03-09 02:53:27', NULL)
562
562
   (0.1ms) RELEASE SAVEPOINT active_record_2
563
-  (0.3ms) SELECT COUNT(*) FROM `spud_menu_items`
563
+  (0.2ms) SELECT COUNT(*) FROM `spud_menu_items`
564
564
  Processing by Spud::Admin::MenuItemsController#destroy as HTML
565
565
  Parameters: {"menu_id"=>"13", "id"=>"14"}
566
- SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 14 LIMIT 1
566
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 14 LIMIT 1
567
567
  SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 13 LIMIT 1
568
- SpudMenuItem Load (0.2ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`id` = 14 LIMIT 1
568
+ SpudMenuItem Load (0.1ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`id` = 14 LIMIT 1
569
569
   (0.1ms) SAVEPOINT active_record_2
570
- SpudMenuItem Load (0.4ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`parent_id` = 14 AND `spud_menu_items`.`parent_type` = 'SpudMenuItem'
570
+ SpudMenuItem Load (0.2ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`parent_id` = 14 AND `spud_menu_items`.`parent_type` = 'SpudMenuItem'
571
571
  SQL (0.2ms) DELETE FROM `spud_menu_items` WHERE `spud_menu_items`.`id` = 14
572
572
   (0.1ms) RELEASE SAVEPOINT active_record_2
573
573
  Redirected to http://test.host/spud/admin/menus/13/menu_items
@@ -577,138 +577,138 @@ Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
577
577
   (0.1ms) ROLLBACK
578
578
   (0.0ms) BEGIN
579
579
   (0.1ms) BEGIN
580
-  (0.0ms) SAVEPOINT active_record_2
581
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
582
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
583
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '4dbb7a86ce6757cf09cc291cbd137b0cf1f83fd4aee6ce3d2d1e7529ce6531b3dabed88eccbf68d4b9534e406b44940cdbe04645a6502803041da7341207417e' LIMIT 1
584
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'RQAk1doOpPqQ7qRmxyDK' LIMIT 1
585
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', 'c341a7480fa1625bc1f62f8cf14c7a0e91297df1cbb1904e2220810d41085d0c2f7b9eb0058afb5e6635a232b8ca6c0de8f3e509d03fea4726c9bb3f15aaa07c', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'eF6dT23viArrwzayqBq9', 'avGX4oHV1EdOU1Gs6h', '4dbb7a86ce6757cf09cc291cbd137b0cf1f83fd4aee6ce3d2d1e7529ce6531b3dabed88eccbf68d4b9534e406b44940cdbe04645a6502803041da7341207417e', 'RQAk1doOpPqQ7qRmxyDK', 1, NULL, '2013-02-20 13:04:27')
586
-  (0.2ms) RELEASE SAVEPOINT active_record_2
587
-  (0.2ms) SAVEPOINT active_record_2
588
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'AMKZXgydbSskWCMpZ4Z', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 15
580
+  (0.2ms) SAVEPOINT active_record_2
581
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
582
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
583
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'f3a210ddd99f3715d2104f9e3627be063a2bbdc1d1c9af51a5cbbb60f4cc9455184674c205bccf5232cc71049e5a468bd75cc427eaef31a716933e785aed7c8f' LIMIT 1
584
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'fFyNxcOo9rT232n2PcA' LIMIT 1
585
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', 'da7da0248f666f50eb687fbcc7790e26f7c6cbb442c3ffdfe483b362d951f027793c561c64850732b4abdb8945b7db648904f340752b83c70a69ebc793843e98', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'CXunxKgmClFpu7Z7a86', 'YKb09j3GsgDfbpddYk', 'f3a210ddd99f3715d2104f9e3627be063a2bbdc1d1c9af51a5cbbb60f4cc9455184674c205bccf5232cc71049e5a468bd75cc427eaef31a716933e785aed7c8f', 'fFyNxcOo9rT232n2PcA', 1, NULL, '2013-03-09 02:53:27')
586
+  (0.0ms) RELEASE SAVEPOINT active_record_2
587
+  (0.1ms) SAVEPOINT active_record_2
588
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 's236d1jCTCdQG1sP12fx', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 15
589
589
   (0.1ms) RELEASE SAVEPOINT active_record_2
590
590
   (0.1ms) SAVEPOINT active_record_2
591
591
  SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu14' AND `spud_menus`.`site_id` = 0) LIMIT 1
592
- SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu14', 0, '2013-02-20 13:04:27')
592
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu14', 0, '2013-03-09 02:53:27')
593
593
   (0.1ms) RELEASE SAVEPOINT active_record_2
594
-  (0.0ms) SAVEPOINT active_record_2
595
- SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:27', NULL, 0, 'Menu Item 14', 1, 'SpudMenu', 1, NULL, '2013-02-20 13:04:27', NULL)
594
+  (0.1ms) SAVEPOINT active_record_2
595
+ SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:27', NULL, 0, 'Menu Item 14', 1, 'SpudMenu', 1, NULL, '2013-03-09 02:53:27', NULL)
596
596
   (0.1ms) RELEASE SAVEPOINT active_record_2
597
597
  Processing by Spud::Admin::MenuItemsController#edit as HTML
598
598
  Parameters: {"id"=>"15", "menu_id"=>"14"}
599
- SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 15 LIMIT 1
599
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 15 LIMIT 1
600
600
  SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 14 LIMIT 1
601
601
  Redirected to http://test.host/spud/admin/menus
602
602
  Filter chain halted as :load_menu rendered or redirected
603
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
604
-  (0.8ms) ROLLBACK
605
-  (0.0ms) ROLLBACK
603
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
604
+  (0.5ms) ROLLBACK
605
+  (0.1ms) ROLLBACK
606
606
   (0.0ms) BEGIN
607
607
   (0.0ms) BEGIN
608
608
   (0.1ms) SAVEPOINT active_record_2
609
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
610
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
611
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '4e29a542cc975011c0b9059affde2d5ffbea4ca0daf77d66629d37980665b6d673a155702172f5ef386ee1dbddac9e4e4af43d737887a0891f7d2e59bbbd9477' LIMIT 1
612
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '7nLCdesJfl6CLjbPtOMB' LIMIT 1
613
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '1fb66e6d866db9c6f6bc6c0bb41bde012a9d500f6b461a9e6cd8bd50b7a36ba63122dcf4b7b2658afe67ee59b2ae35821689fcc593e4410cfcb7dbd6197eb5c8', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, '2R3kzzTU7mBY28GM2oTa', 'dzHrZGnlEQ5CpOTgnppS', '4e29a542cc975011c0b9059affde2d5ffbea4ca0daf77d66629d37980665b6d673a155702172f5ef386ee1dbddac9e4e4af43d737887a0891f7d2e59bbbd9477', '7nLCdesJfl6CLjbPtOMB', 1, NULL, '2013-02-20 13:04:27')
614
-  (0.1ms) RELEASE SAVEPOINT active_record_2
609
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
610
+ SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
611
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'ffbc53fcf8203ce0ded00c960cf93859d2078659f270247e87968d164fba25e16011bcac31b9ee2e8c44caefafd40f850092f07f138ab57bd67b34f5a8e4e9df' LIMIT 1
612
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'ACxBwuvEx0etW9eJPuU' LIMIT 1
613
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', 'e7e16f21335658eff75d0e29d71f1a7b01710711ee7b1f0443018f2b0ea5fb68b8baea50197abeadb3ef0b3743af907bedd92ffa0dcea18c5216896fd6431b85', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, '4zH3qZfZrBctpiXFUTnP', '17gR7tgzOnHvAY74Kcc', 'ffbc53fcf8203ce0ded00c960cf93859d2078659f270247e87968d164fba25e16011bcac31b9ee2e8c44caefafd40f850092f07f138ab57bd67b34f5a8e4e9df', 'ACxBwuvEx0etW9eJPuU', 1, NULL, '2013-03-09 02:53:27')
614
+  (0.0ms) RELEASE SAVEPOINT active_record_2
615
615
   (0.1ms) SAVEPOINT active_record_2
616
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'IWuNSOFYwWuVKeX2Zf0E', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 16
617
-  (0.0ms) RELEASE SAVEPOINT active_record_2
618
-  (0.0ms) SAVEPOINT active_record_2
619
- SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu15' AND `spud_menus`.`site_id` = 0) LIMIT 1
620
- SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu15', 0, '2013-02-20 13:04:27')
616
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'ALlY30tzmW3O7hp4Ioon', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 16
621
617
   (0.1ms) RELEASE SAVEPOINT active_record_2
622
618
   (0.1ms) SAVEPOINT active_record_2
623
- SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu16' AND `spud_menus`.`site_id` = 0) LIMIT 1
624
- SQL (0.2ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu16', 0, '2013-02-20 13:04:27')
625
-  (0.0ms) RELEASE SAVEPOINT active_record_2
619
+ SpudMenu Exists (0.1ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu15' AND `spud_menus`.`site_id` = 0) LIMIT 1
620
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu15', 0, '2013-03-09 02:53:27')
621
+  (0.1ms) RELEASE SAVEPOINT active_record_2
622
+  (0.0ms) SAVEPOINT active_record_2
623
+ SpudMenu Exists (0.1ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu16' AND `spud_menus`.`site_id` = 0) LIMIT 1
624
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu16', 0, '2013-03-09 02:53:27')
625
+  (0.1ms) RELEASE SAVEPOINT active_record_2
626
626
  Processing by Spud::Admin::MenusController#index as HTML
627
- SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 16 LIMIT 1
628
- Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.3ms)
629
-  (0.3ms) SELECT COUNT(*) FROM `spud_menus` WHERE `spud_menus`.`site_id` = 0
630
-  (0.7ms) ROLLBACK
631
-  (0.2ms) ROLLBACK
627
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 16 LIMIT 1
628
+ Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)
629
+  (0.2ms) SELECT COUNT(*) FROM `spud_menus` WHERE `spud_menus`.`site_id` = 0
630
+  (0.4ms) ROLLBACK
631
+  (0.0ms) ROLLBACK
632
632
   (0.0ms) BEGIN
633
633
   (0.0ms) BEGIN
634
-  (0.0ms) SAVEPOINT active_record_2
635
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
634
+  (0.1ms) SAVEPOINT active_record_2
635
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
636
636
  SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
637
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '239b2c52a287b91d3a024b7918bbf89cf3dc296228a5e6276dd0a9727cdccbb213dc577bdd10d94d3b8d2eeba44a40e7d4ca1a17efdb038f0d0f75bc6b80da16' LIMIT 1
638
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'pj68qXkfBDKuOaH3koM' LIMIT 1
639
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', 'fd4b43ae23eccc729f4e8d3974a5fc3ed2cf024c18183b7ca0aaffec11e87104a118b3271b7dc0ca6e2dcbcdf5529d8143ee4d25dc14b0a63797bc98505151db', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'X9fNJFWZCWtB5JoHJlN1', 'raaxtGpdWOcdlh7vbXta', '239b2c52a287b91d3a024b7918bbf89cf3dc296228a5e6276dd0a9727cdccbb213dc577bdd10d94d3b8d2eeba44a40e7d4ca1a17efdb038f0d0f75bc6b80da16', 'pj68qXkfBDKuOaH3koM', 1, NULL, '2013-02-20 13:04:27')
640
-  (0.2ms) RELEASE SAVEPOINT active_record_2
641
-  (0.2ms) SAVEPOINT active_record_2
642
-  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = '4UIN21SFdyPFTVdvqvMU', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 17
637
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '9c25230fdf12284bc5ea6814aeaf10146c9d99b4db5f0ca9cefc3b39212e5d08ff523087327c26c94d5d5fccd0fb79dfc0822b8ed21d6a5c1602f485c86e2e4e' LIMIT 1
638
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'NDmnopRhmoMfHmnpPbg' LIMIT 1
639
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', 'ce2674ff549edd68f7bfce589f59925037c12827580b5d56bffac52c3a410f8b55c4515dbdda51bc76416c0ec442c646a4b8141bd910a31aa1e31d7fc5dc8cea', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'CmXNkwbZdMMEoUftmIRB', 'nWLRTVfNyI5WI53YQ2E', '9c25230fdf12284bc5ea6814aeaf10146c9d99b4db5f0ca9cefc3b39212e5d08ff523087327c26c94d5d5fccd0fb79dfc0822b8ed21d6a5c1602f485c86e2e4e', 'NDmnopRhmoMfHmnpPbg', 1, NULL, '2013-03-09 02:53:27')
640
+  (0.1ms) RELEASE SAVEPOINT active_record_2
641
+  (0.1ms) SAVEPOINT active_record_2
642
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'Le8fTgf8ndEKOdIteD7R', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 17
643
643
   (0.1ms) RELEASE SAVEPOINT active_record_2
644
644
  Processing by Spud::Admin::MenusController#new as HTML
645
645
  SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 17 LIMIT 1
646
646
  Completed 200 OK in 5ms (Views: 1.3ms | ActiveRecord: 0.4ms)
647
-  (0.6ms) ROLLBACK
647
+  (0.4ms) ROLLBACK
648
648
   (0.1ms) ROLLBACK
649
649
   (0.1ms) BEGIN
650
-  (0.0ms) BEGIN
651
-  (0.2ms) SAVEPOINT active_record_2
652
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
653
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
654
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '8a63f03fc007c8879c3757485e019c130872749e0fd7405f74a6de7038982fa1dbe408d1a75e3d3d419fa49cae84287392421de9200532bcebc3b802ca4a6d24' LIMIT 1
655
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'V23Q7rSWsxoZ2ZbqyD' LIMIT 1
656
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '06954ade5133d0f9b38691239fad3e5d3e8d2d2c972e52843ce7877bee73cbc0fe6c0aef9d036a7192c8cf7519f1cc690960cb33b09d07cdc2fcee224ff56988', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'Bm569SVyfLjfmGVUCJt', 'DULuR6PeOEiYpFZvszd0', '8a63f03fc007c8879c3757485e019c130872749e0fd7405f74a6de7038982fa1dbe408d1a75e3d3d419fa49cae84287392421de9200532bcebc3b802ca4a6d24', 'V23Q7rSWsxoZ2ZbqyD', 1, NULL, '2013-02-20 13:04:27')
650
+  (0.1ms) BEGIN
651
+  (0.3ms) SAVEPOINT active_record_2
652
+ SpudUser Exists (0.4ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
653
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
654
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '9dea6364929def238697947567d9a2b88634c42e902fb9d1eb3c0c43d0368409d2750a9ed5cbefb09b636c834c7dc110e5242e9ba4ba05a2fda0713ae2a6127b' LIMIT 1
655
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'VW33NTxi8uakop5aZwwI' LIMIT 1
656
+ SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', '98adeac32a2d01b37fb65e3bf24475e76ae3bad5b4585b42f377058fffc4bdf8938ba9ced81a9ac2802e98ab106eecb468727d84cf1464e16ea92027dcaf09b8', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, '33UszbMvPhVPi0g3kOB1', 'v2DP0TnXXs1Wy26zOEz3', '9dea6364929def238697947567d9a2b88634c42e902fb9d1eb3c0c43d0368409d2750a9ed5cbefb09b636c834c7dc110e5242e9ba4ba05a2fda0713ae2a6127b', 'VW33NTxi8uakop5aZwwI', 1, NULL, '2013-03-09 02:53:27')
657
657
   (0.1ms) RELEASE SAVEPOINT active_record_2
658
658
   (0.1ms) SAVEPOINT active_record_2
659
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'dmTRADyYY4m404y4ODLN', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 18
659
+  (0.4ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'iXaMzpsxeiI42vJmyWN', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 18
660
660
   (0.1ms) RELEASE SAVEPOINT active_record_2
661
661
   (0.1ms) SELECT COUNT(*) FROM `spud_menus` 
662
662
  Processing by Spud::Admin::MenusController#create as HTML
663
663
  Parameters: {"spud_menu"=>{"name"=>"Menu17"}}
664
- SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 18 LIMIT 1
664
+ SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 18 LIMIT 1
665
665
   (0.1ms) SAVEPOINT active_record_2
666
666
  SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu17' AND `spud_menus`.`site_id` = 0) LIMIT 1
667
- SQL (0.2ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu17', 0, '2013-02-20 13:04:27')
667
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu17', 0, '2013-03-09 02:53:27')
668
668
   (0.1ms) RELEASE SAVEPOINT active_record_2
669
669
  Redirected to http://test.host/spud/admin/menus/17/menu_items
670
670
  Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
671
671
   (0.2ms) SELECT COUNT(*) FROM `spud_menus` 
672
-  (0.6ms) ROLLBACK
673
-  (0.0ms) ROLLBACK
672
+  (0.5ms) ROLLBACK
673
+  (0.1ms) ROLLBACK
674
674
   (0.0ms) BEGIN
675
675
   (0.0ms) BEGIN
676
-  (0.2ms) SAVEPOINT active_record_2
677
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
676
+  (0.1ms) SAVEPOINT active_record_2
677
+ SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
678
678
  SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
679
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '45aaf7a2ca61c1f4b6389f50e44e8dd559ab344b53611fcbb57acd6f2c900641ee44efde9eea6c9be42cb5bcfad3b525c3ec581bea8a7a14c77a1a048baa5551' LIMIT 1
680
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'YMDN5l5aHbVZ8mjjwARs' LIMIT 1
681
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '407a62f61231b5eb68430d41bbce3b87e610664a88644317f7a771e4712da1094fd02dd0bb10bcebcf1a49913d183ef1961d9d03286046195cb4655bde87f1c6', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'qVlDJOplvocnLsLSpS2X', 'YUTT4A7DDJu0IdclaxS', '45aaf7a2ca61c1f4b6389f50e44e8dd559ab344b53611fcbb57acd6f2c900641ee44efde9eea6c9be42cb5bcfad3b525c3ec581bea8a7a14c77a1a048baa5551', 'YMDN5l5aHbVZ8mjjwARs', 1, NULL, '2013-02-20 13:04:27')
679
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '5e8e14300d4ff7bdd4e1957e5503ad3bff3b02ffa00186be2637fe329ff7bf45cdff069e99ceceed0144f6c466254562e2d3d9a0467f2e74a7dac6a7776b445c' LIMIT 1
680
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'Sqv5wdwM8KZ1lUSPpAZ' LIMIT 1
681
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', '9cc7c0b5ba8ce0b42c4342b705e1f197c20eb969ec76f1ce6ff17e0f0ff82179071e808a5e93580226994edb92c8735eec9c6c0456f750d54440fcd9bf5a2ac3', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'qiQXZHloJiET9bqTrH5', 'lRzQ6n28gk3sjszgti9', '5e8e14300d4ff7bdd4e1957e5503ad3bff3b02ffa00186be2637fe329ff7bf45cdff069e99ceceed0144f6c466254562e2d3d9a0467f2e74a7dac6a7776b445c', 'Sqv5wdwM8KZ1lUSPpAZ', 1, NULL, '2013-03-09 02:53:27')
682
682
   (0.1ms) RELEASE SAVEPOINT active_record_2
683
683
   (0.1ms) SAVEPOINT active_record_2
684
-  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = '0FYUiWrwJCmfaTkAw4n', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 19
684
+  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = '9h0IGmGMzqe9RoHE89EK', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 19
685
685
   (0.1ms) RELEASE SAVEPOINT active_record_2
686
-  (0.2ms) SELECT COUNT(*) FROM `spud_menus`
686
+  (0.1ms) SELECT COUNT(*) FROM `spud_menus`
687
687
  Processing by Spud::Admin::MenusController#create as HTML
688
688
  Parameters: {"spud_menu"=>{"name"=>nil}}
689
689
  SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 19 LIMIT 1
690
-  (0.2ms) SAVEPOINT active_record_2
691
- SpudMenu Exists (0.3ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` IS NULL AND `spud_menus`.`site_id` = 0) LIMIT 1
690
+  (0.1ms) SAVEPOINT active_record_2
691
+ SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` IS NULL AND `spud_menus`.`site_id` = 0) LIMIT 1
692
692
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
693
- Completed 200 OK in 7ms (Views: 0.8ms | ActiveRecord: 0.0ms)
694
-  (0.3ms) SELECT COUNT(*) FROM `spud_menus` 
695
-  (0.3ms) ROLLBACK
696
-  (0.0ms) ROLLBACK
693
+ Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 0.0ms)
694
+  (0.2ms) SELECT COUNT(*) FROM `spud_menus` 
695
+  (0.5ms) ROLLBACK
696
+  (0.1ms) ROLLBACK
697
697
   (0.0ms) BEGIN
698
698
   (0.0ms) BEGIN
699
699
   (0.1ms) SAVEPOINT active_record_2
700
700
  SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
701
701
  SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
702
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '080f5f4534665b0a1ada2fab5b21191b7c04b634d390a3ff0a4bbb8e23db847716df69990fa2e600231286f98f04affd3ffdaf6150915c73b2a4d70792a9d776' LIMIT 1
703
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'pzTdLDgJSb0J8w8zWtB' LIMIT 1
704
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '5997a44840a474a0d13cd0570a40243e980ae50941c4c9cbf5853661b1c4268af006d05e3422a33b70b1603663190c5f858253c7e99c11f3d79d7ed67d6fcfda', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'ZhqEJBTweB0mJZEztV9q', 'V7TrbdYBzSMjbiuTqbws', '080f5f4534665b0a1ada2fab5b21191b7c04b634d390a3ff0a4bbb8e23db847716df69990fa2e600231286f98f04affd3ffdaf6150915c73b2a4d70792a9d776', 'pzTdLDgJSb0J8w8zWtB', 1, NULL, '2013-02-20 13:04:27')
705
-  (0.0ms) RELEASE SAVEPOINT active_record_2
702
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '95c077cd9405e4ec33cd7b6376a7c8a2b23db41fafffc967483402f5109b947f6a93b5c86e3abf2a8793896407173a9e028446b1103a6fabcd5154255b8ad26b' LIMIT 1
703
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'dxu2xuuMH52Pp91YQXm' LIMIT 1
704
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', '61aaff3e28bca7a382a578f312e754e648385ae970a451b536ec0b473e63b6e913271f3347a461e505fd21fcff870033803680e47f16ed1a9683af1fbf8bc99c', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'he5TJK4D6P26y6jXcBO', 'BDL6oPpDcdmwRcQ4xI', '95c077cd9405e4ec33cd7b6376a7c8a2b23db41fafffc967483402f5109b947f6a93b5c86e3abf2a8793896407173a9e028446b1103a6fabcd5154255b8ad26b', 'dxu2xuuMH52Pp91YQXm', 1, NULL, '2013-03-09 02:53:27')
705
+  (0.1ms) RELEASE SAVEPOINT active_record_2
706
706
   (0.1ms) SAVEPOINT active_record_2
707
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'l6cTxgxb51odDvgTC8Ms', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 20
708
-  (0.0ms) RELEASE SAVEPOINT active_record_2
707
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'FpiqaYe6m1ADxvVsqD8', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 20
708
+  (0.1ms) RELEASE SAVEPOINT active_record_2
709
709
   (0.0ms) SAVEPOINT active_record_2
710
710
  SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu18' AND `spud_menus`.`site_id` = 1) LIMIT 1
711
- SQL (0.2ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu18', 1, '2013-02-20 13:04:27')
711
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu18', 1, '2013-03-09 02:53:27')
712
712
   (0.1ms) RELEASE SAVEPOINT active_record_2
713
713
  Processing by Spud::Admin::MenusController#edit as HTML
714
714
  Parameters: {"id"=>"18"}
@@ -716,47 +716,47 @@ Processing by Spud::Admin::MenusController#edit as HTML
716
716
  SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 18 LIMIT 1
717
717
  Redirected to http://test.host/spud/admin/menus
718
718
  Filter chain halted as :load_menu rendered or redirected
719
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
720
-  (1.0ms) ROLLBACK
721
-  (0.2ms) ROLLBACK
719
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
720
+  (0.5ms) ROLLBACK
721
+  (0.0ms) ROLLBACK
722
722
   (0.1ms) BEGIN
723
723
   (0.0ms) BEGIN
724
724
   (0.1ms) SAVEPOINT active_record_2
725
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
725
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
726
726
  SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
727
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '953a1b150ba56b207eef10f0da5c0dd0f7764e7e88bfe9540c0d77812476d87a74b2f6362a7203514bdbb597364c4c89e26ea26e33df53f6fd20b096100528f0' LIMIT 1
728
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'fYEssjCm70SnOud9SDV' LIMIT 1
729
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '4789f45493701fdd6288c5a32ff0a25eeefee671c9c35d79308b8b414f16b1a392fc6395300146df375b56c96b6e774a6e7c3c4ced183abc6cc0cd27d8db7a2b', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'WTz7YRZamp3xfjN6vEgW', 'HlLBBjwM4knNgemmEdQ0', '953a1b150ba56b207eef10f0da5c0dd0f7764e7e88bfe9540c0d77812476d87a74b2f6362a7203514bdbb597364c4c89e26ea26e33df53f6fd20b096100528f0', 'fYEssjCm70SnOud9SDV', 1, NULL, '2013-02-20 13:04:27')
730
-  (0.2ms) RELEASE SAVEPOINT active_record_2
727
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '22670d21a8b2deb5fb4bbc66ff0c6ca245ecbcff37ad99f1ad2c4c84ed2734c359fb1f59f6cc5ac92d332d3f4de466289c82de2691050b47afbd2b8d2d403954' LIMIT 1
728
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'yIn7BazcwMDImWMVYbJd' LIMIT 1
729
+ SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', 'dc44ca0e127c5799f9a8a0fe4e548fc6dbfed1ec0f949b34a464ec3fa4dcd8f5e898bfe2985499f19436353d4543cbfa7c0fdceaef91f38cf5aa9ff0fe28f849', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'hwJuFxqVrYg7dK4CNC', 'COYbrhrxQy4BwE7WVJE', '22670d21a8b2deb5fb4bbc66ff0c6ca245ecbcff37ad99f1ad2c4c84ed2734c359fb1f59f6cc5ac92d332d3f4de466289c82de2691050b47afbd2b8d2d403954', 'yIn7BazcwMDImWMVYbJd', 1, NULL, '2013-03-09 02:53:27')
730
+  (0.1ms) RELEASE SAVEPOINT active_record_2
731
731
   (0.1ms) SAVEPOINT active_record_2
732
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'v2KU5YwnchRFNhl0UDb', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 21
733
-  (0.1ms) RELEASE SAVEPOINT active_record_2
734
-  (0.1ms) SAVEPOINT active_record_2
732
+  (0.1ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'Qq53GHoArRrhwmIIqAZ6', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 21
733
+  (0.0ms) RELEASE SAVEPOINT active_record_2
734
+  (0.0ms) SAVEPOINT active_record_2
735
735
  SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu19' AND `spud_menus`.`site_id` = 0) LIMIT 1
736
- SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu19', 0, '2013-02-20 13:04:27')
736
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu19', 0, '2013-03-09 02:53:27')
737
737
   (0.1ms) RELEASE SAVEPOINT active_record_2
738
738
   (0.1ms) SAVEPOINT active_record_2
739
- SpudMenu Exists (0.1ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu20' AND `spud_menus`.`site_id` = 0) LIMIT 1
740
- SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu20', 0, '2013-02-20 13:04:27')
739
+ SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu20' AND `spud_menus`.`site_id` = 0) LIMIT 1
740
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu20', 0, '2013-03-09 02:53:27')
741
741
   (0.0ms) RELEASE SAVEPOINT active_record_2
742
742
  Processing by Spud::Admin::MenusController#edit as HTML
743
743
  Parameters: {"id"=>"20"}
744
- SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 21 LIMIT 1
744
+ SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 21 LIMIT 1
745
745
  SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 20 LIMIT 1
746
- Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.4ms)
746
+ Completed 200 OK in 5ms (Views: 1.3ms | ActiveRecord: 0.5ms)
747
747
   (0.5ms) ROLLBACK
748
-  (0.1ms) ROLLBACK
748
+  (0.0ms) ROLLBACK
749
749
   (0.0ms) BEGIN
750
750
   (0.0ms) BEGIN
751
751
   (0.1ms) SAVEPOINT active_record_2
752
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
753
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
754
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'be8ba5c05d11e7fdef3855763b395b18dbf0150930e2fc14d1fff0f2759c0edf49a449635e35c5459261f9e960aebc402d347329bd2a7145379212966f66a198' LIMIT 1
755
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'EWQX5UX5KrxMIxZCiu' LIMIT 1
756
- SQL (1.5ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '10035d5addf04da11e9dc0daab08b8729e80b94044fd52ffb75ce8189c6c6729e120aab14834f005f26b5c73d02ef0fb0353a20581f5b937220fd034f46e9b85', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'mxqdgBv4SrQxo0z3IgZW', '2NnSoy8M3FINidQYyvTL', 'be8ba5c05d11e7fdef3855763b395b18dbf0150930e2fc14d1fff0f2759c0edf49a449635e35c5459261f9e960aebc402d347329bd2a7145379212966f66a198', 'EWQX5UX5KrxMIxZCiu', 1, NULL, '2013-02-20 13:04:27')
757
-  (0.1ms) RELEASE SAVEPOINT active_record_2
758
-  (0.2ms) SAVEPOINT active_record_2
759
-  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'sHCi7LaP8EBGs2KCGO', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 22
752
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
753
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
754
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '11a7244bfa3cb4ee5ed1e11a03dd01f9c3aa3c006335921dca90489212229a686587fb17ae3241ae5a2ace563b06b516daec9cd2fd9ee8226e9b2a1e9354bd78' LIMIT 1
755
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'cTvfGsSYOAxidZStpCbL' LIMIT 1
756
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', 'faf404f6b2975ff4206ea8e3bebe85877d467b80e3ef3c314a78753f21fda17c84920360b28a2aaf901e67bfd4df38d468f68e66d66829ca2121c76c90db4f66', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'mMAiwlLEWanGCwtzj4U', 'XDVgKnJGtP3qn3QmLogF', '11a7244bfa3cb4ee5ed1e11a03dd01f9c3aa3c006335921dca90489212229a686587fb17ae3241ae5a2ace563b06b516daec9cd2fd9ee8226e9b2a1e9354bd78', 'cTvfGsSYOAxidZStpCbL', 1, NULL, '2013-03-09 02:53:27')
757
+  (0.2ms) RELEASE SAVEPOINT active_record_2
758
+  (0.1ms) SAVEPOINT active_record_2
759
+  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'cvPF7rYVHuTPKUiMA7hv', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 22
760
760
   (0.1ms) RELEASE SAVEPOINT active_record_2
761
761
  Processing by Spud::Admin::MenusController#edit as HTML
762
762
  Parameters: {"id"=>"3"}
@@ -764,113 +764,113 @@ Processing by Spud::Admin::MenusController#edit as HTML
764
764
  SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 3 LIMIT 1
765
765
  Redirected to http://test.host/spud/admin/menus
766
766
  Filter chain halted as :load_menu rendered or redirected
767
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
768
-  (0.6ms) ROLLBACK
767
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
768
+  (0.4ms) ROLLBACK
769
769
   (0.0ms) ROLLBACK
770
770
   (0.0ms) BEGIN
771
-  (0.1ms) BEGIN
771
+  (0.0ms) BEGIN
772
772
   (0.2ms) SAVEPOINT active_record_2
773
773
  SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
774
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
775
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '3c07c02986164f087bf6714e1fe058fa808d23637a6a51435f44c64470bbe4fae6fe49fa3627919850de7aadc87df5b40ebcd15f342dbb22b1ea80149d5c83bc' LIMIT 1
776
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'mvXYd8zhY2kWX1b9rGH9' LIMIT 1
777
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '5828f356a2c53b6e15c5aca91835c69198d0ef9094e6e96e76c6874f6b075cc7357afc02893047c5ebd8271fbc7f3d04c40ac817407a63fd2520a1d41882df1f', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'k3PSwyATiuKnCmWETh4o', 'kfqehuzKtpqUqdghbBAW', '3c07c02986164f087bf6714e1fe058fa808d23637a6a51435f44c64470bbe4fae6fe49fa3627919850de7aadc87df5b40ebcd15f342dbb22b1ea80149d5c83bc', 'mvXYd8zhY2kWX1b9rGH9', 1, NULL, '2013-02-20 13:04:27')
778
-  (0.1ms) RELEASE SAVEPOINT active_record_2
779
-  (0.1ms) SAVEPOINT active_record_2
780
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'uh4v5zXfjG4BRuc4fD3', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 23
774
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
775
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '4f299b7317ac6dfba1e87e0efe26a21bf3ce26e274e8219e7c76b771356e0a09e12a7c3c42ff39595c3d62e984ac3c08e97ef86a74723f63cb5455fb1dfb6c7b' LIMIT 1
776
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'qK5Px0bVCFtyGHzh3S' LIMIT 1
777
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', 'bf94a7f09157b686df7e4101abf6bf0db2cfc66cfc6e622452165f697ebb1bda87928503e26637c45845587cd0555fd1628965fd32f9dcde270dfd7aa854cb7d', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'kn4fPAy0y08dPd7cqt4c', '4JrJNisp3RYDgBi2Zd81', '4f299b7317ac6dfba1e87e0efe26a21bf3ce26e274e8219e7c76b771356e0a09e12a7c3c42ff39595c3d62e984ac3c08e97ef86a74723f63cb5455fb1dfb6c7b', 'qK5Px0bVCFtyGHzh3S', 1, NULL, '2013-03-09 02:53:27')
778
+  (0.2ms) RELEASE SAVEPOINT active_record_2
779
+  (0.2ms) SAVEPOINT active_record_2
780
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = '8jTDnQBLQrnvbc1gG2', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 23
781
781
   (0.1ms) RELEASE SAVEPOINT active_record_2
782
782
   (0.0ms) SAVEPOINT active_record_2
783
- SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu21' AND `spud_menus`.`site_id` = 0) LIMIT 1
784
- SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu21', 0, '2013-02-20 13:04:27')
785
-  (0.1ms) RELEASE SAVEPOINT active_record_2
783
+ SpudMenu Exists (0.3ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu21' AND `spud_menus`.`site_id` = 0) LIMIT 1
784
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu21', 0, '2013-03-09 02:53:27')
785
+  (0.0ms) RELEASE SAVEPOINT active_record_2
786
786
  Processing by Spud::Admin::MenusController#update as HTML
787
- Parameters: {"spud_menu"=>{"name"=>"MyMenu", "description"=>nil, "created_at"=>"2013-02-20 13:04:27 UTC", "updated_at"=>"2013-02-20 13:04:27 UTC"}, "id"=>"21"}
787
+ Parameters: {"spud_menu"=>{"name"=>"MyMenu", "description"=>nil, "created_at"=>"2013-03-09 02:53:27 UTC", "updated_at"=>"2013-03-09 02:53:27 UTC"}, "id"=>"21"}
788
788
  SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 23 LIMIT 1
789
- SpudMenu Load (0.3ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 21 LIMIT 1
789
+ SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 21 LIMIT 1
790
790
   (0.1ms) SAVEPOINT active_record_2
791
- SpudMenu Exists (0.3ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'MyMenu' AND `spud_menus`.`id` != 21 AND `spud_menus`.`site_id` = 0) LIMIT 1
792
-  (0.2ms) UPDATE `spud_menus` SET `name` = 'MyMenu', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_menus`.`id` = 21
793
-  (0.1ms) RELEASE SAVEPOINT active_record_2
791
+ SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'MyMenu' AND `spud_menus`.`id` != 21 AND `spud_menus`.`site_id` = 0) LIMIT 1
792
+  (0.2ms) UPDATE `spud_menus` SET `name` = 'MyMenu', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_menus`.`id` = 21
793
+  (0.0ms) RELEASE SAVEPOINT active_record_2
794
794
  Redirected to http://test.host/spud/admin/menus/21/menu_items
795
795
  Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
796
796
  SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 21 LIMIT 1
797
-  (0.9ms) ROLLBACK
798
-  (0.1ms) ROLLBACK
797
+  (0.4ms) ROLLBACK
798
+  (0.0ms) ROLLBACK
799
799
   (0.0ms) BEGIN
800
800
   (0.0ms) BEGIN
801
801
   (0.1ms) SAVEPOINT active_record_2
802
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
803
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
804
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'c9c09c9a4ddbb32d3fb7acbac23aaac858daaf1d21d1ea8cc67d924c23da81b9566e21699ed37330e573fe39429f89f1332bb65361926b22be6a3e83eb78903e' LIMIT 1
805
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'y5VV2Ez31JSR7BwQD5A' LIMIT 1
806
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '4d3876eef4c8a10942ad0a7f1c650a061799d142394309a60136d7e130d1c6707f834ec2afce6070e07a090f00a6798ab4e27a92d11ca57cab08fe762f22d30d', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'dFrkXrhX96vedy5bMBNd', 'u90kxbsfESkG597Puiop', 'c9c09c9a4ddbb32d3fb7acbac23aaac858daaf1d21d1ea8cc67d924c23da81b9566e21699ed37330e573fe39429f89f1332bb65361926b22be6a3e83eb78903e', 'y5VV2Ez31JSR7BwQD5A', 1, NULL, '2013-02-20 13:04:27')
802
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
803
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
804
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '9333d878ec9aa4df454f99ee5bb00e7ad8c1d729e3611ddfb682e291762401026d43a8ac31b74f7a6efd1a0f298792ab92f44c07c98de9f2805308010787a1cb' LIMIT 1
805
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'egZIUSVvPDWwYLKvQ9v' LIMIT 1
806
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', '26486855510608e8a62c661e97e81b898cfaa7e0f8ed49062fd052817df1968d81e005b53d1ea1e7e008ccf25328af0c57269b786667f1e59029a1296c16c695', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'VdtdIx1I7xKNuweWSXv0', 'wxDfOXFg2R6LfDv693hK', '9333d878ec9aa4df454f99ee5bb00e7ad8c1d729e3611ddfb682e291762401026d43a8ac31b74f7a6efd1a0f298792ab92f44c07c98de9f2805308010787a1cb', 'egZIUSVvPDWwYLKvQ9v', 1, NULL, '2013-03-09 02:53:27')
807
807
   (0.1ms) RELEASE SAVEPOINT active_record_2
808
-  (0.2ms) SAVEPOINT active_record_2
809
-  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = '0OknCbnQhMSjRjvRiTX8', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 24
810
-  (0.1ms) RELEASE SAVEPOINT active_record_2
811
-  (0.0ms) SAVEPOINT active_record_2
812
- SpudMenu Exists (0.1ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu22' AND `spud_menus`.`site_id` = 0) LIMIT 1
813
- SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu22', 0, '2013-02-20 13:04:27')
808
+  (0.1ms) SAVEPOINT active_record_2
809
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = '2RsOCHN4OBmMkUyG40yg', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 24
814
810
   (0.1ms) RELEASE SAVEPOINT active_record_2
811
+  (0.1ms) SAVEPOINT active_record_2
812
+ SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu22' AND `spud_menus`.`site_id` = 0) LIMIT 1
813
+ SQL (0.2ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu22', 0, '2013-03-09 02:53:27')
814
+  (0.0ms) RELEASE SAVEPOINT active_record_2
815
815
  Processing by Spud::Admin::MenusController#update as HTML
816
- Parameters: {"spud_menu"=>{"name"=>"MyMenu", "description"=>nil, "created_at"=>"2013-02-20 13:04:27 UTC", "updated_at"=>"2013-02-20 13:04:27 UTC"}, "id"=>"22"}
817
- SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 24 LIMIT 1
818
- SpudMenu Load (0.3ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 22 LIMIT 1
816
+ Parameters: {"spud_menu"=>{"name"=>"MyMenu", "description"=>nil, "created_at"=>"2013-03-09 02:53:27 UTC", "updated_at"=>"2013-03-09 02:53:27 UTC"}, "id"=>"22"}
817
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 24 LIMIT 1
818
+ SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 22 LIMIT 1
819
819
   (0.1ms) SAVEPOINT active_record_2
820
820
  SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'MyMenu' AND `spud_menus`.`id` != 22 AND `spud_menus`.`site_id` = 0) LIMIT 1
821
-  (0.2ms) UPDATE `spud_menus` SET `name` = 'MyMenu', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_menus`.`id` = 22
822
-  (0.0ms) RELEASE SAVEPOINT active_record_2
821
+  (0.2ms) UPDATE `spud_menus` SET `name` = 'MyMenu', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_menus`.`id` = 22
822
+  (0.1ms) RELEASE SAVEPOINT active_record_2
823
823
  Redirected to http://test.host/spud/admin/menus/22/menu_items
824
824
  Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
825
-  (0.4ms) ROLLBACK
826
-  (0.1ms) ROLLBACK
827
-  (0.0ms) BEGIN
828
-  (0.0ms) BEGIN
825
+  (0.5ms) ROLLBACK
826
+  (0.2ms) ROLLBACK
827
+  (0.1ms) BEGIN
828
+  (0.1ms) BEGIN
829
829
   (0.1ms) SAVEPOINT active_record_2
830
830
  SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
831
831
  SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
832
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '09a6b869f734be0bfb62a8d0ae886ff0807155239f849a94825c8bcd373bc7ee8bf3c74b8778f5fc485abe625af14f3ce1472fd7e6414b55c2a144d462c23de1' LIMIT 1
833
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '01XIBaXRFDllsl5kHf8' LIMIT 1
834
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '8e78bc4f550d7e3ac1a25643e0879bc904205ea19d8aefcd1dedf9cd1c32135cb8ba9aa1d7507a0cfb214edf743577be41403f2e98e83b309d837c0d7a63473f', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'EyY9ye7diovaPvtiKDKa', 'GOS5FdGAX6VQ36cK0LN', '09a6b869f734be0bfb62a8d0ae886ff0807155239f849a94825c8bcd373bc7ee8bf3c74b8778f5fc485abe625af14f3ce1472fd7e6414b55c2a144d462c23de1', '01XIBaXRFDllsl5kHf8', 1, NULL, '2013-02-20 13:04:27')
835
-  (0.2ms) RELEASE SAVEPOINT active_record_2
832
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'c6e01e74fdf2ad91dfd22736e2d3f0eb68173d8c9aeb00e08a2c04047fb4ac16dfed6e89dfed3acc9e7a814fe9c1cb626b03ea3dd634150bf0c0be205be7a52b' LIMIT 1
833
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'SjHGe2Za3Aj63VYbCtG' LIMIT 1
834
+ SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', 'cf20c948a623fa46c02d287c90954126ce36f91138241b2bdfb68d655ba73f5dd7c5322c09e5fabf758d83e955db0573e8805bdd3f34e2b8c132003d1931a732', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'NBWRO4c4uFAVxDBzbOft', 'krdbOYeb8v6qjI3IOIn0', 'c6e01e74fdf2ad91dfd22736e2d3f0eb68173d8c9aeb00e08a2c04047fb4ac16dfed6e89dfed3acc9e7a814fe9c1cb626b03ea3dd634150bf0c0be205be7a52b', 'SjHGe2Za3Aj63VYbCtG', 1, NULL, '2013-03-09 02:53:27')
835
+  (0.1ms) RELEASE SAVEPOINT active_record_2
836
836
   (0.2ms) SAVEPOINT active_record_2
837
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'E3sL2xTNWezjLwpAAiB', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 25
837
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'JvMjMNJNaDNA8sLVtrX', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 25
838
838
   (0.1ms) RELEASE SAVEPOINT active_record_2
839
-  (0.0ms) SAVEPOINT active_record_2
839
+  (0.1ms) SAVEPOINT active_record_2
840
840
  SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu23' AND `spud_menus`.`site_id` = 0) LIMIT 1
841
- SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu23', 0, '2013-02-20 13:04:27')
841
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu23', 0, '2013-03-09 02:53:27')
842
842
   (0.1ms) RELEASE SAVEPOINT active_record_2
843
843
   (0.1ms) SELECT COUNT(*) FROM `spud_menus` 
844
844
  Processing by Spud::Admin::MenusController#destroy as HTML
845
845
  Parameters: {"id"=>"23"}
846
- SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 25 LIMIT 1
846
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 25 LIMIT 1
847
847
  SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`id` = 23 LIMIT 1
848
848
   (0.1ms) SAVEPOINT active_record_2
849
849
  SpudMenuItem Load (0.2ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`parent_id` = 23 AND `spud_menu_items`.`parent_type` = 'SpudMenu'
850
- SpudMenuItem Load (0.3ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`spud_menu_id` = 23
850
+ SpudMenuItem Load (0.2ms) SELECT `spud_menu_items`.* FROM `spud_menu_items` WHERE `spud_menu_items`.`spud_menu_id` = 23
851
851
  SQL (0.2ms) DELETE FROM `spud_menus` WHERE `spud_menus`.`id` = 23
852
-  (0.0ms) RELEASE SAVEPOINT active_record_2
852
+  (0.1ms) RELEASE SAVEPOINT active_record_2
853
853
  Redirected to http://test.host/spud/admin/menus
854
- Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
855
-  (0.2ms) SELECT COUNT(*) FROM `spud_menus` 
856
-  (0.8ms) ROLLBACK
854
+ Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
855
+  (0.1ms) SELECT COUNT(*) FROM `spud_menus` 
856
+  (0.4ms) ROLLBACK
857
857
   (0.0ms) ROLLBACK
858
-  (0.0ms) BEGIN
859
-  (0.0ms) BEGIN
860
-  (0.2ms) SAVEPOINT active_record_2
858
+  (0.1ms) BEGIN
859
+  (0.1ms) BEGIN
860
+  (0.1ms) SAVEPOINT active_record_2
861
861
  SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
862
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
863
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'f6ff6de147e1f0436cfb17d5ca89bc30db29c00d2987bc29e0599033558540d7b6820f9bdc9282791c6788febd88f7969d1dd022f58288ee4a4af6b7d8e0973b' LIMIT 1
864
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '2tRTl7JneOptEyhiAmQ6' LIMIT 1
865
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '98ae1ff068bc2e92a547d10e8ac7de10bae789d26f1dab12d07e7a7ce2c8f1410230e0e10bd5469ad1c59910e479ebe3da488d4dfd8cd5cf66cddf843896f783', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'wWz661UJsMH2AUgSuzpU', 'xbGFyOa9eAVbTrh8qug', 'f6ff6de147e1f0436cfb17d5ca89bc30db29c00d2987bc29e0599033558540d7b6820f9bdc9282791c6788febd88f7969d1dd022f58288ee4a4af6b7d8e0973b', '2tRTl7JneOptEyhiAmQ6', 1, NULL, '2013-02-20 13:04:27')
862
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
863
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '5a829ca0776bfe8c796870e6f6573319bb99c7bacf52539439fe5ea297e5b39c0a103c9f655e4ef9bfb99f640c6e2040aabec965bc0ee21e8cc9bfa313e65537' LIMIT 1
864
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '79KSaYNn7mcakYbjH7nn' LIMIT 1
865
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', '14c233f4f7ce6d544862de80480d0c6fd107a556957e9b66b0dd767790604eb05fdf808eaafb8c6729ae79e56e2cf2696c42f17af926f2d85649cc5a1bfdb346', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'IcyZ89A6Ck1k6u9rctR0', 'YlpEIPta1DAObhdy8RUI', '5a829ca0776bfe8c796870e6f6573319bb99c7bacf52539439fe5ea297e5b39c0a103c9f655e4ef9bfb99f640c6e2040aabec965bc0ee21e8cc9bfa313e65537', '79KSaYNn7mcakYbjH7nn', 1, NULL, '2013-03-09 02:53:27')
866
866
   (0.2ms) RELEASE SAVEPOINT active_record_2
867
867
   (0.1ms) SAVEPOINT active_record_2
868
-  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'fAXPZjHoBaJPi6SsSPKD', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 26
868
+  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'FC0haQehRZhHqVTxbD', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 26
869
869
   (0.1ms) RELEASE SAVEPOINT active_record_2
870
870
   (0.1ms) SAVEPOINT active_record_2
871
871
  SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu24' AND `spud_menus`.`site_id` = 0) LIMIT 1
872
- SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:27', NULL, 'Menu24', 0, '2013-02-20 13:04:27')
873
-  (0.2ms) RELEASE SAVEPOINT active_record_2
872
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:27', NULL, 'Menu24', 0, '2013-03-09 02:53:27')
873
+  (0.1ms) RELEASE SAVEPOINT active_record_2
874
874
   (0.1ms) SELECT COUNT(*) FROM `spud_menus`
875
875
  Processing by Spud::Admin::MenusController#destroy as HTML
876
876
  Parameters: {"id"=>"23532"}
@@ -879,410 +879,383 @@ Processing by Spud::Admin::MenusController#destroy as HTML
879
879
  Redirected to http://test.host/spud/admin/menus
880
880
  Filter chain halted as :load_menu rendered or redirected
881
881
  Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
882
-  (0.2ms) SELECT COUNT(*) FROM `spud_menus` 
882
+  (0.1ms) SELECT COUNT(*) FROM `spud_menus` 
883
883
   (0.4ms) ROLLBACK
884
-  (0.1ms) ROLLBACK
884
+  (0.0ms) ROLLBACK
885
885
   (0.0ms) BEGIN
886
-  (0.0ms) BEGIN
887
-  (0.0ms) SAVEPOINT active_record_2
886
+  (0.1ms) BEGIN
887
+  (0.1ms) SAVEPOINT active_record_2
888
888
  SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
889
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
890
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'f187d640e0396ccc6655d394a29715fe75b8bb4fe9d5114d3ecae7654425cd13a4e1e23ffbf18e2b0692f9add16f5626aa7fd33934039368989d24800bb5cfc0' LIMIT 1
891
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'X4bN5xZyi6BG4pmvac' LIMIT 1
892
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '9df74389617e8c3ca94284a785bd420c418ba4a66f0808dc8aaffc258ffcddaf216611fb6717d55e884a2e2dbd4d4b3832789bea1b8e7fa0ec126d814d3b804b', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'sh4Wdny3R6HqKAvYJNf0', 'oMgu99iEOTmRZ7jsAdfM', 'f187d640e0396ccc6655d394a29715fe75b8bb4fe9d5114d3ecae7654425cd13a4e1e23ffbf18e2b0692f9add16f5626aa7fd33934039368989d24800bb5cfc0', 'X4bN5xZyi6BG4pmvac', 1, NULL, '2013-02-20 13:04:27')
889
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
890
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'ff967d743c7817db21044e555d0b6bf3d7db7315c6f9c7bdedc8ba92ee4803fb6eb76b2ea09e84895c26cb190cf1e612df2a5ab9b5ed5565cbce848c7957cfc3' LIMIT 1
891
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'iiS26vdHDGnhgdK4gW' LIMIT 1
892
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', 'ad0c2726d9f254d9f62ecb5a47bd3704cc5dcc0397e0c3c74055be80b558348ecf5a136a9d1665e28a110359d9bb1021bc682512d7c433b8307e8eefb71c061c', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, '9nXdNYrh6Zo93s2WuQq', 'VA8d1TGkkhyiaWQ0T8yp', 'ff967d743c7817db21044e555d0b6bf3d7db7315c6f9c7bdedc8ba92ee4803fb6eb76b2ea09e84895c26cb190cf1e612df2a5ab9b5ed5565cbce848c7957cfc3', 'iiS26vdHDGnhgdK4gW', 1, NULL, '2013-03-09 02:53:27')
893
893
   (0.1ms) RELEASE SAVEPOINT active_record_2
894
894
   (0.2ms) SAVEPOINT active_record_2
895
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'D3yGxeI085P0wsVWYp', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 27
895
+  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = '3f1zuU1PGtKTG39FM0Rw', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 27
896
896
   (0.1ms) RELEASE SAVEPOINT active_record_2
897
897
   (0.1ms) SAVEPOINT active_record_2
898
898
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
899
899
  SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1
900
900
  SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
901
901
  SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` = 0) LIMIT 1
902
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:27', NULL, 'html', NULL, NULL, NULL, 'Page3', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:27', NULL, 'page3', 0, 0)
902
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:27', NULL, 'html', NULL, NULL, NULL, 'Page3', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:27', NULL, 'page3', 0, 0)
903
903
   (0.1ms) RELEASE SAVEPOINT active_record_2
904
904
   (0.1ms) SAVEPOINT active_record_2
905
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
906
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1
907
- SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
908
- SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` = 0) LIMIT 1
909
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:27', NULL, 'html', NULL, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:27', NULL, 'page4', 0, 0)
905
+ SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
906
+ SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1
907
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
908
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` = 0) LIMIT 1
909
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:27', NULL, 'html', NULL, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:27', NULL, 'page4', 0, 0)
910
910
   (0.1ms) RELEASE SAVEPOINT active_record_2
911
911
  Processing by Spud::Admin::PagesController#index as HTML
912
- SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 27 LIMIT 1
912
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 27 LIMIT 1
913
913
  SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`url_name` = 'home' LIMIT 1
914
- Completed 200 OK in 6ms (Views: 1.6ms | ActiveRecord: 0.6ms)
914
+ Completed 200 OK in 6ms (Views: 1.6ms | ActiveRecord: 0.5ms)
915
915
   (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL
916
-  (1.0ms) ROLLBACK
917
-  (0.1ms) ROLLBACK
918
-  (0.1ms) BEGIN
916
+  (0.5ms) ROLLBACK
917
+  (0.0ms) ROLLBACK
918
+  (0.0ms) BEGIN
919
919
   (0.0ms) BEGIN
920
920
   (0.1ms) SAVEPOINT active_record_2
921
921
  SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
922
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
923
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '5fcf11834ef38e79d5d1584f369ba200b43c0f67a98358a7257bc5b247d99a1fe94930cf1c8480d0c3f6a6a5547f4307a07f1c7cd6e62cb16d439b350d9e4f11' LIMIT 1
924
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'vUfIjpdG9gcU0SR86Ci' LIMIT 1
925
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '771f2236a71c363a46611b7cd4c06cce0dbcab9ea173ecdb2676ad2959e13d2170543ce9d4b310965ac772cb9c493db91bba70ad5dfa258beef256ca91ec84d5', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'VtHwvxXdM3N3S2ksyEEX', '0uKFEAnivYEuyelwbFz', '5fcf11834ef38e79d5d1584f369ba200b43c0f67a98358a7257bc5b247d99a1fe94930cf1c8480d0c3f6a6a5547f4307a07f1c7cd6e62cb16d439b350d9e4f11', 'vUfIjpdG9gcU0SR86Ci', 1, NULL, '2013-02-20 13:04:27')
922
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
923
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'a8113ac5a2315accb82e14dde02fa664da0237e4d3937c52b01be0d280c982b63581f491a0684b350da0d0780af0f11c3f5d087ca6edee4033d73d703270b495' LIMIT 1
924
+ SpudUser Exists (0.4ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '2q85di8GTCbYlp9iMBMZ' LIMIT 1
925
+ SQL (0.4ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', 'ffde2b95a4da7a231e6054e870d891ff1a7ea7c057c8a4ff94f74cf345e6dffb526621189569dead210aa3a2e93023ec4cccc2272d4587578654ad20f36d9d5a', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'ZRpSC5tEQzE0pDV47NgD', 'ITULFGQlCXoW2H6Kzo7', 'a8113ac5a2315accb82e14dde02fa664da0237e4d3937c52b01be0d280c982b63581f491a0684b350da0d0780af0f11c3f5d087ca6edee4033d73d703270b495', '2q85di8GTCbYlp9iMBMZ', 1, NULL, '2013-03-09 02:53:27')
926
926
   (0.1ms) RELEASE SAVEPOINT active_record_2
927
927
   (0.1ms) SAVEPOINT active_record_2
928
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'raW8uDmlLZLUdn1i7m7m', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 28
929
-  (0.0ms) RELEASE SAVEPOINT active_record_2
928
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'gSlLKmZ8lUWwtuC3wPIW', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 28
929
+  (0.1ms) RELEASE SAVEPOINT active_record_2
930
930
   (0.0ms) SAVEPOINT active_record_2
931
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
932
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1
931
+ SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
932
+ SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1
933
933
  SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
934
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` = 0) LIMIT 1
935
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:27', NULL, 'html', NULL, NULL, NULL, 'Page5', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:27', NULL, 'page5', 0, 0)
934
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` = 0) LIMIT 1
935
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:27', NULL, 'html', NULL, NULL, NULL, 'Page5', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:27', NULL, 'page5', 0, 0)
936
936
   (0.1ms) RELEASE SAVEPOINT active_record_2
937
937
   (0.1ms) SAVEPOINT active_record_2
938
938
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
939
939
  SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page6' LIMIT 1
940
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
940
+ SpudPage Exists (0.3ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
941
941
  SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page6' AND `spud_pages`.`site_id` = 0) LIMIT 1
942
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:27', NULL, 'html', NULL, NULL, NULL, 'Page6', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:27', NULL, 'page6', 0, 0)
943
-  (0.1ms) RELEASE SAVEPOINT active_record_2
942
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:27', NULL, 'html', NULL, NULL, NULL, 'Page6', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:27', NULL, 'page6', 0, 0)
943
+  (0.0ms) RELEASE SAVEPOINT active_record_2
944
944
   (0.1ms) SAVEPOINT active_record_2
945
945
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1
946
946
  SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
947
947
  SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page7' LIMIT 1
948
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page7' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` = 1) LIMIT 1
948
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page7' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` = 1) LIMIT 1
949
949
  SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page7' AND `spud_pages`.`site_id` = 0) LIMIT 1
950
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:27', NULL, 'html', NULL, NULL, NULL, 'Page7', NULL, NULL, NULL, 1, 0, 1, '2013-02-20 13:04:27', NULL, 'page7', 0, 0)
950
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:27', NULL, 'html', NULL, NULL, NULL, 'Page7', NULL, NULL, NULL, 1, 0, 1, '2013-03-09 02:53:27', NULL, 'page7', 0, 0)
951
951
   (0.1ms) RELEASE SAVEPOINT active_record_2
952
952
  Processing by Spud::Admin::PagesController#index as HTML
953
953
  SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 28 LIMIT 1
954
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`url_name` = 'home' LIMIT 1
955
- Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.4ms)
956
-  (0.2ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL
957
-  (0.6ms) ROLLBACK
958
-  (0.0ms) ROLLBACK
954
+ SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`url_name` = 'home' LIMIT 1
955
+ Completed 200 OK in 5ms (Views: 1.0ms | ActiveRecord: 0.5ms)
956
+  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL
957
+  (0.4ms) ROLLBACK
958
+  (0.1ms) ROLLBACK
959
959
   (0.0ms) BEGIN
960
960
   (0.0ms) BEGIN
961
961
   (0.1ms) SAVEPOINT active_record_2
962
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
963
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
964
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '62b5f5bcddd64a3247257f709a4eadda4cfe41e438e40cd53418176a8150deec78bfcba45deda3b187517dd96159bd60bfde128291e4b495e6d01f52809d61be' LIMIT 1
965
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'dM3qQr4BHJJRHB2uEI5' LIMIT 1
966
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '798c5694c952a0f1d48f5e3c8dc7e8975cff347c8ec6c2a1b27a43aeb0a47bcb3911d89c9304c4efc20764489b52b0c84d4606b60366b964ec685e7861070f6b', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'JRXIHiGa9goRDi0nzVPx', 'QjiQkEysC6EX931cscw', '62b5f5bcddd64a3247257f709a4eadda4cfe41e438e40cd53418176a8150deec78bfcba45deda3b187517dd96159bd60bfde128291e4b495e6d01f52809d61be', 'dM3qQr4BHJJRHB2uEI5', 1, NULL, '2013-02-20 13:04:27')
962
+ SpudUser Exists (0.4ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
963
+ SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
964
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '6c42de0507676de6e02e9f53160bb916476650c2b8166f760c2bbd44b78743e7b4892f215c25542741aefb9ae5909fab05ee063d78a024ae92519620e648781f' LIMIT 1
965
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'jlmUE1zIak0u8QvFjF' LIMIT 1
966
+ SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', '0e5339320f56f5426e871958fee3a53d2623cd1b5aa268cf66e57af7caecee3bd419c5bab526c337ee2908596d485f202e464a9d5d49235dcf94346f52de9caa', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'Nj9dDU4EpIJmA9JIjvT3', 'yEbx7dGPAZame6tN5Qzy', '6c42de0507676de6e02e9f53160bb916476650c2b8166f760c2bbd44b78743e7b4892f215c25542741aefb9ae5909fab05ee063d78a024ae92519620e648781f', 'jlmUE1zIak0u8QvFjF', 1, NULL, '2013-03-09 02:53:27')
967
967
   (0.1ms) RELEASE SAVEPOINT active_record_2
968
968
   (0.1ms) SAVEPOINT active_record_2
969
-  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'yEiIHmEEhqf1BB9G9e7', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 29
969
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = '65mbccvhluy0jV3x9kio', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 29
970
970
   (0.1ms) RELEASE SAVEPOINT active_record_2
971
971
   (0.1ms) SAVEPOINT active_record_2
972
972
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
973
- SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page8' LIMIT 1
973
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page8' LIMIT 1
974
974
  SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page8' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
975
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page8' AND `spud_pages`.`site_id` = 0) LIMIT 1
976
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:27', NULL, 'html', NULL, NULL, NULL, 'Page8', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:27', NULL, 'page8', 0, 0)
977
-  (0.0ms) RELEASE SAVEPOINT active_record_2
975
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page8' AND `spud_pages`.`site_id` = 0) LIMIT 1
976
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:27', NULL, 'html', NULL, NULL, NULL, 'Page8', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:27', NULL, 'page8', 0, 0)
977
+  (0.1ms) RELEASE SAVEPOINT active_record_2
978
978
  Processing by Spud::Admin::PagesController#show as HTML
979
979
  Parameters: {"id"=>"17"}
980
980
  SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 29 LIMIT 1
981
- SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 17 LIMIT 1
982
- SpudPagePartial Load (0.3ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (17)
983
- Completed 200 OK in 7ms (Views: 1.4ms | ActiveRecord: 0.8ms)
981
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 17 LIMIT 1
982
+ SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (17)
983
+ Completed 200 OK in 6ms (Views: 1.3ms | ActiveRecord: 0.6ms)
984
984
   (0.4ms) ROLLBACK
985
985
   (0.0ms) ROLLBACK
986
-  (0.1ms) BEGIN
987
-  (0.0ms) BEGIN
988
-  (0.2ms) SAVEPOINT active_record_2
989
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
986
+  (0.0ms) BEGIN
987
+  (0.1ms) BEGIN
988
+  (0.0ms) SAVEPOINT active_record_2
989
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
990
990
  SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
991
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '5f20e3711d4c87bb2b5c4b31c9573aac4bdd5d32822d1bf544673d6db93816ac5f6e7bbec0c6c5876e18872469d95d388c84659fcb0ed1f7fa4bf24d56b50a86' LIMIT 1
992
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'RcSTrcIjr77fS31zh47' LIMIT 1
993
- SQL (0.4ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '32a0b726d6ac1273a23b7a0000d8a70471c9b22018f47e5a089a61f2144ee0aa1baf6c01bcdeee1d10d2bd28219c060e98ef616a7d086bbd509993b71b0ab863', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, '1H4ohe9fl56EjUxoNmRy', 'XYKoDYOzyts9la8MHk5', '5f20e3711d4c87bb2b5c4b31c9573aac4bdd5d32822d1bf544673d6db93816ac5f6e7bbec0c6c5876e18872469d95d388c84659fcb0ed1f7fa4bf24d56b50a86', 'RcSTrcIjr77fS31zh47', 1, NULL, '2013-02-20 13:04:27')
994
-  (0.2ms) RELEASE SAVEPOINT active_record_2
995
-  (0.2ms) SAVEPOINT active_record_2
996
-  (0.4ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'Usx8CvOw5B4O39SFPcHe', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 30
997
-  (0.1ms) RELEASE SAVEPOINT active_record_2
991
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '4d2c2105fbba06055bb65e325c3475afebec77635384b8db513d29767dabea209a97070e716af028bc422329c79f16b9d2bb8eca2001df475cc2639072de53e5' LIMIT 1
992
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'gP11eAp2X4bxzhg2lrk' LIMIT 1
993
+ SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:27', '66cddc50b7fb76b8e28ea633fbdcb6aaef99db1e936cec0a468110911183269de8d8873f797c3c48d39a3c3e090fd076081bea22fc9a40bf8cc990fc81b8c7b8', '2013-03-09 02:53:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:27', 'testuser', 1, 'pdxmdc4yW8dBXwWs8T', 'RyggoRlaPnRDkXKvoac', '4d2c2105fbba06055bb65e325c3475afebec77635384b8db513d29767dabea209a97070e716af028bc422329c79f16b9d2bb8eca2001df475cc2639072de53e5', 'gP11eAp2X4bxzhg2lrk', 1, NULL, '2013-03-09 02:53:27')
994
+  (0.1ms) RELEASE SAVEPOINT active_record_2
995
+  (0.1ms) SAVEPOINT active_record_2
996
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'TrmKiNT4r7HjpsOWHpRJ', `updated_at` = '2013-03-09 02:53:27' WHERE `spud_users`.`id` = 30
997
+  (0.0ms) RELEASE SAVEPOINT active_record_2
998
998
  Processing by Spud::Admin::PagesController#new as HTML
999
- SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 30 LIMIT 1
1000
- Completed 200 OK in 17ms (Views: 2.0ms | ActiveRecord: 0.3ms)
1001
-  (0.9ms) ROLLBACK
999
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 30 LIMIT 1
1000
+ Completed 200 OK in 15ms (Views: 1.3ms | ActiveRecord: 0.2ms)
1001
+  (0.6ms) ROLLBACK
1002
1002
   (0.1ms) ROLLBACK
1003
-  (0.1ms) BEGIN
1004
-  (0.1ms) BEGIN
1003
+  (0.0ms) BEGIN
1004
+  (0.0ms) BEGIN
1005
1005
   (0.2ms) SAVEPOINT active_record_2
1006
- SpudUser Exists (0.4ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
1007
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
1008
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '882c2452740a5031e07a92922d61e297fee2d623de1ee26e911a56696646e2f726083632fef3ea1046b8889bee4d1534ae89dc57dcda1df936b4c5d1d4dac7ac' LIMIT 1
1009
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'QvwroV2qZrG3KIfFlrli' LIMIT 1
1010
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', '308dcaac115ce2eaecd3309f2408ac592c5fa50263e353f6bb80a4518e3a5f5a3044ca311a6146aef1ddd49dcbc91d0a46486a94fb01eb368fbca39ad15eda9f', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, '5sX1eO8sDJ1IuyVQKhdw', 'HVbf2FoEsb7fbQmSnx', '882c2452740a5031e07a92922d61e297fee2d623de1ee26e911a56696646e2f726083632fef3ea1046b8889bee4d1534ae89dc57dcda1df936b4c5d1d4dac7ac', 'QvwroV2qZrG3KIfFlrli', 1, NULL, '2013-02-20 13:04:27')
1011
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1006
+ SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
1007
+ SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
1008
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '7c844aadc96ad0a3a7b65a5bb678bb884395a8e3375091124028f404657baec0a57f779327214eafee1e53c09b87278783610a1d682329b76a9d7c0dc0aaf55d' LIMIT 1
1009
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'TdiVeQ30Ts4bz3SLkpj' LIMIT 1
1010
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:28', 'b20436a44640eefeb65c279ffe1cda2a17d26d0ef06a5dbc0b04cc7558878cd0ef564e31d1f175fca4ea0aa141eec739e36bee66ed0dbae39645d54188b7c4a6', '2013-03-09 02:53:28', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:28', 'testuser', 1, 'YnIvYn44CICFx1XNOPM6', 'kx0vVvlcf4IzyfhIS3VH', '7c844aadc96ad0a3a7b65a5bb678bb884395a8e3375091124028f404657baec0a57f779327214eafee1e53c09b87278783610a1d682329b76a9d7c0dc0aaf55d', 'TdiVeQ30Ts4bz3SLkpj', 1, NULL, '2013-03-09 02:53:28')
1011
+  (0.2ms) RELEASE SAVEPOINT active_record_2
1012
1012
   (0.1ms) SAVEPOINT active_record_2
1013
-  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'DU4vTyR9XkKua63TkKzt', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 31
1013
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:28', `last_login_ip` = '0.0.0.0', `perishable_token` = 'aCOVVwMApmVFd1IFo1', `updated_at` = '2013-03-09 02:53:28' WHERE `spud_users`.`id` = 31
1014
1014
   (0.1ms) RELEASE SAVEPOINT active_record_2
1015
1015
  Processing by Spud::Admin::PagesController#new as HTML
1016
- SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 31 LIMIT 1
1017
- Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.3ms)
1016
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 31 LIMIT 1
1017
+ Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.2ms)
1018
1018
   (0.5ms) ROLLBACK
1019
1019
   (0.1ms) ROLLBACK
1020
1020
   (0.0ms) BEGIN
1021
1021
   (0.0ms) BEGIN
1022
1022
   (0.1ms) SAVEPOINT active_record_2
1023
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
1024
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
1025
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'fea73ad131313f1fd669923c37f5d2f3504bfb8a143c67fb9de2afe803f883b691dadae781e9492b16a3dfe055efa67318b3ee22acb903b0293842c5ea8b596b' LIMIT 1
1026
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'N76kwYk9fdkqZXCJGyuY' LIMIT 1
1027
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:27', 'a342a5120b50a08d02abcf0b9642c66f536f91f743aeb6e64a9e1f8ba31da27cf207d4c5623d73f8ea74d42e3de3659160405338e1d51ea3e32f2190975b177a', '2013-02-20 13:04:27', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:27', 'testuser', 1, 'szbSlqEBxpJs8jE8fuRw', 'OMDo2uvb4QUzKSwv72os', 'fea73ad131313f1fd669923c37f5d2f3504bfb8a143c67fb9de2afe803f883b691dadae781e9492b16a3dfe055efa67318b3ee22acb903b0293842c5ea8b596b', 'N76kwYk9fdkqZXCJGyuY', 1, NULL, '2013-02-20 13:04:27')
1028
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1029
-  (0.1ms) SAVEPOINT active_record_2
1030
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:27', `last_login_ip` = '0.0.0.0', `perishable_token` = 'f7f0NLgoGc7gY5ibeUqd', `updated_at` = '2013-02-20 13:04:27' WHERE `spud_users`.`id` = 32
1023
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
1024
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
1025
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '62897847f8f6a22df32f59f0f16368095fc138a0e05f1177c094eb88fbf14647dc68acb677c3d2b3ad8b20b59d603251fc81c348894e80f6946fe76d57cfd6da' LIMIT 1
1026
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'aMaE7lV5CqTXUe2cOqu9' LIMIT 1
1027
+ SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:28', '1bda0583c832e7cc47a72bb3e8632503ab4c1062badc6d736ecdd7c2dbe34b9a058b017c7c9e3ba7894ca559f981b1e6d791eaa49a978e4abe46b0e2c71c7dd4', '2013-03-09 02:53:28', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:28', 'testuser', 1, 'iFkdzQ0KYoQNWApLc57Z', 'M4ej5yppkGGNCrMXUW5', '62897847f8f6a22df32f59f0f16368095fc138a0e05f1177c094eb88fbf14647dc68acb677c3d2b3ad8b20b59d603251fc81c348894e80f6946fe76d57cfd6da', 'aMaE7lV5CqTXUe2cOqu9', 1, NULL, '2013-03-09 02:53:28')
1028
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1029
+  (0.2ms) SAVEPOINT active_record_2
1030
+  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:28', `last_login_ip` = '0.0.0.0', `perishable_token` = 'cDpGkP6Sc0nyMwbqlcmg', `updated_at` = '2013-03-09 02:53:28' WHERE `spud_users`.`id` = 32
1031
1031
   (0.1ms) RELEASE SAVEPOINT active_record_2
1032
-  (0.2ms) SAVEPOINT active_record_2
1032
+  (0.1ms) SAVEPOINT active_record_2
1033
1033
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1034
1034
  SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page9' LIMIT 1
1035
1035
  SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page9' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1036
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page9' AND `spud_pages`.`site_id` = 0) LIMIT 1
1037
- SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:27', NULL, 'html', NULL, NULL, NULL, 'Page9', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:27', NULL, 'page9', 0, 0)
1038
-  (0.0ms) RELEASE SAVEPOINT active_record_2
1036
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page9' AND `spud_pages`.`site_id` = 0) LIMIT 1
1037
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page9', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'page9', 0, 0)
1038
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1039
1039
  Processing by Spud::Admin::PagesController#edit as HTML
1040
1040
  Parameters: {"id"=>"18"}
1041
1041
  SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 32 LIMIT 1
1042
-  (0.1ms) SAVEPOINT active_record_2
1043
-  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2013-02-20 13:04:28', `perishable_token` = 'C3o6ivUdy35XkbdlWNRX', `updated_at` = '2013-02-20 13:04:28' WHERE `spud_users`.`id` = 32
1044
-  (0.0ms) RELEASE SAVEPOINT active_record_2
1045
- SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 18 LIMIT 1
1046
- SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (18)
1047
- Completed 200 OK in 9ms (Views: 1.9ms | ActiveRecord: 0.8ms)
1048
-  (0.6ms) ROLLBACK
1049
-  (0.1ms) ROLLBACK
1050
-  (0.0ms) BEGIN
1042
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 18 LIMIT 1
1043
+ SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (18)
1044
+ Completed 200 OK in 7ms (Views: 1.5ms | ActiveRecord: 0.6ms)
1045
+  (0.7ms) ROLLBACK
1046
+  (0.1ms) ROLLBACK
1051
1047
   (0.1ms) BEGIN
1052
-  (0.2ms) SAVEPOINT active_record_2
1053
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
1054
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
1055
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '5d61ecaae5407ac7e21f7fbdacf965b1704e09060e6198114654c47d81e6c856c60393abca23b2cdf6aef8f08b67a97753f57fabb381755e7c43d04c49add66f' LIMIT 1
1056
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'riDpiKc9id2uvE3hEyk' LIMIT 1
1057
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:28', '069247bc9f402175ee1889c3cdf60b3adc721a4766337ac27c4b1ad8200f9d424aff4d55e0e4786f2c034402d7a4c95c5e4632a18006d87a0a185a08cefd33ad', '2013-02-20 13:04:28', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:28', 'testuser', 1, '6VkAKTECZedDgRy8ttvN', 'cZ4fPzH7leMdHvawGWPv', '5d61ecaae5407ac7e21f7fbdacf965b1704e09060e6198114654c47d81e6c856c60393abca23b2cdf6aef8f08b67a97753f57fabb381755e7c43d04c49add66f', 'riDpiKc9id2uvE3hEyk', 1, NULL, '2013-02-20 13:04:28')
1058
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1059
-  (0.2ms) SAVEPOINT active_record_2
1060
-  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:28', `last_login_ip` = '0.0.0.0', `perishable_token` = 'dElascoFLBJ9neU3v', `updated_at` = '2013-02-20 13:04:28' WHERE `spud_users`.`id` = 33
1048
+  (0.0ms) BEGIN
1049
+  (0.0ms) SAVEPOINT active_record_2
1050
+ SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
1051
+ SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
1052
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '98892268414ca50674b84290574335b31fd3595ee9240da4577c03b34c68729333208f4f35800a1234ced513d63023f4c42d5905bb5d1aef9e8c97a8947c0f1d' LIMIT 1
1053
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'umG3aGUMIdBM4BQG0bI' LIMIT 1
1054
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:28', '33d82517324f4b6eb47eff3f69f327548a68a9fd2bce3d308424c3f66fcb0c8fb62b0dc1aa6b71a78b460256fc76d9105d2c55b8db19a63be5b95c1d11caedf0', '2013-03-09 02:53:28', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:28', 'testuser', 1, 'kJezAmUO4u6ssaSHPKpe', 'MRGQs7KSlk85fsQG32E4', '98892268414ca50674b84290574335b31fd3595ee9240da4577c03b34c68729333208f4f35800a1234ced513d63023f4c42d5905bb5d1aef9e8c97a8947c0f1d', 'umG3aGUMIdBM4BQG0bI', 1, NULL, '2013-03-09 02:53:28')
1061
1055
   (0.1ms) RELEASE SAVEPOINT active_record_2
1062
1056
   (0.1ms) SAVEPOINT active_record_2
1063
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1064
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page10' LIMIT 1
1065
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page10' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1066
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page10' AND `spud_pages`.`site_id` = 0) LIMIT 1
1067
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page10', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'page10', 0, 0)
1057
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:28', `last_login_ip` = '0.0.0.0', `perishable_token` = '7hq0Zbb35xPfhXBLc08w', `updated_at` = '2013-03-09 02:53:28' WHERE `spud_users`.`id` = 33
1068
1058
   (0.1ms) RELEASE SAVEPOINT active_record_2
1059
+  (0.1ms) SAVEPOINT active_record_2
1060
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1061
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page10' LIMIT 1
1062
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page10' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1063
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page10' AND `spud_pages`.`site_id` = 0) LIMIT 1
1064
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page10', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'page10', 0, 0)
1065
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1069
1066
  Processing by Spud::Admin::PagesController#update as HTML
1070
1067
  Parameters: {"spud_page"=>{"name"=>"Adam", "url_name"=>"page10", "publish_at"=>nil, "created_by"=>nil, "updated_by"=>nil, "format"=>"html", "spud_page_id"=>nil, "meta_description"=>nil, "meta_keywords"=>nil, "page_order"=>nil, "visibility"=>"0", "published"=>true, "use_custom_url_name"=>false, "notes"=>nil, "layout"=>nil}, "id"=>"19"}
1071
- SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 33 LIMIT 1
1072
- SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 19 LIMIT 1
1073
- SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (19)
1074
-  (0.1ms) SAVEPOINT active_record_2
1075
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0 AND (id != 19)
1076
- SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'adam' LIMIT 1
1077
- SpudPermalink Exists (0.3ms) SELECT 1 AS one FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'page10' AND `spud_permalinks`.`site_id` = 0) LIMIT 1
1078
- SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (19, 'SpudPage', '2013-02-20 13:04:28', 0, '2013-02-20 13:04:28', 'page10')
1079
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Adam' AND `spud_pages`.`id` != 19 AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1080
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'adam' AND `spud_pages`.`id` != 19 AND `spud_pages`.`site_id` = 0) LIMIT 1
1081
-  (0.2ms) UPDATE `spud_pages` SET `name` = 'Adam', `url_name` = 'adam', `updated_at` = '2013-02-20 13:04:28' WHERE `spud_pages`.`id` = 19
1082
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1083
- Redirected to http://test.host/spud/admin/pages
1084
- Completed 302 Found in 53ms (ActiveRecord: 2.4ms)
1068
+ SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 33 LIMIT 1
1085
1069
  SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 19 LIMIT 1
1086
-  (1.0ms) ROLLBACK
1087
-  (0.1ms) ROLLBACK
1088
-  (0.0ms) BEGIN
1089
-  (0.1ms) BEGIN
1090
-  (0.2ms) SAVEPOINT active_record_2
1091
- SpudUser Exists (0.4ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
1092
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
1093
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '0c5f7c188413e11838b0854837f08afc289d97ed162a3644a6fc02a9f4705398920021eadbb403b5e6c6abfe0c136b148a2979b1b65edae5d629eb708d741e9f' LIMIT 1
1094
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'nlxacM8VrX7O7Ap6c8s' LIMIT 1
1095
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:28', '5cf371c913656802be0f54a20ce0c9ad8e51634bb4c846e253da4d539af9fa94cd730f4c31c5a57e1fc9b10bc2f8a4f15d09c56ea07208c7e6ece6a764ba8413', '2013-02-20 13:04:28', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:28', 'testuser', 1, 'fVWyDzdTDsufZcGpECm', '3FNwItRqhiRKG7PZw', '0c5f7c188413e11838b0854837f08afc289d97ed162a3644a6fc02a9f4705398920021eadbb403b5e6c6abfe0c136b148a2979b1b65edae5d629eb708d741e9f', 'nlxacM8VrX7O7Ap6c8s', 1, NULL, '2013-02-20 13:04:28')
1096
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1070
+ SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (19)
1097
1071
   (0.1ms) SAVEPOINT active_record_2
1098
-  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:28', `last_login_ip` = '0.0.0.0', `perishable_token` = '8DKJIIXWLwsXireV3ngZ', `updated_at` = '2013-02-20 13:04:28' WHERE `spud_users`.`id` = 34
1072
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0 AND (id != 19)
1073
+ SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'adam' LIMIT 1
1074
+ SpudPermalink Exists (0.2ms) SELECT 1 AS one FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'page10' AND `spud_permalinks`.`site_id` = 0) LIMIT 1
1075
+ SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (19, 'SpudPage', '2013-03-09 02:53:28', 0, '2013-03-09 02:53:28', 'page10')
1076
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Adam' AND `spud_pages`.`id` != 19 AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1077
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'adam' AND `spud_pages`.`id` != 19 AND `spud_pages`.`site_id` = 0) LIMIT 1
1078
+  (0.2ms) UPDATE `spud_pages` SET `name` = 'Adam', `url_name` = 'adam', `updated_at` = '2013-03-09 02:53:28' WHERE `spud_pages`.`id` = 19
1099
1079
   (0.1ms) RELEASE SAVEPOINT active_record_2
1080
+ Redirected to http://test.host/spud/admin/pages
1081
+ Completed 302 Found in 14ms (ActiveRecord: 2.2ms)
1082
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 19 LIMIT 1
1083
+  (0.3ms) ROLLBACK
1084
+  (0.0ms) ROLLBACK
1085
+  (0.1ms) BEGIN
1086
+  (0.1ms) BEGIN
1087
+  (0.1ms) SAVEPOINT active_record_2
1088
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
1089
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
1090
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '6624545fefbeba9541c185d629c1d32ddc330938d56c76cd4cc7b82a3c735ea254882cfcc62bf10e43bc86d1775df89d25719bb0656a3341490942f3052b09ed' LIMIT 1
1091
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'KF4Hz0lKgn23NBZNhiwU' LIMIT 1
1092
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:28', 'e12673c0abfe3c6814a32ec3f834a19151b4b5968f9d46c36e3a1cadb5cf48da2205a468506a6bf8a659cda775e51673d880dc997115f7b641247e0d457c0a35', '2013-03-09 02:53:28', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:28', 'testuser', 1, 'QdoTkcGnA7fkpOrgVQ', 'e89HsFNpQco8EpjVdG8', '6624545fefbeba9541c185d629c1d32ddc330938d56c76cd4cc7b82a3c735ea254882cfcc62bf10e43bc86d1775df89d25719bb0656a3341490942f3052b09ed', 'KF4Hz0lKgn23NBZNhiwU', 1, NULL, '2013-03-09 02:53:28')
1093
+  (0.2ms) RELEASE SAVEPOINT active_record_2
1100
1094
   (0.1ms) SAVEPOINT active_record_2
1101
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1102
- SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page11' LIMIT 1
1103
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page11' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1104
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page11' AND `spud_pages`.`site_id` = 0) LIMIT 1
1105
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page11', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'page11', 0, 0)
1095
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:28', `last_login_ip` = '0.0.0.0', `perishable_token` = 'rPahlKdcX2Gnwx5GLc', `updated_at` = '2013-03-09 02:53:28' WHERE `spud_users`.`id` = 34
1106
1096
   (0.1ms) RELEASE SAVEPOINT active_record_2
1097
+  (0.2ms) SAVEPOINT active_record_2
1098
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1099
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page11' LIMIT 1
1100
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page11' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1101
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page11' AND `spud_pages`.`site_id` = 0) LIMIT 1
1102
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page11', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'page11', 0, 0)
1103
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1107
1104
  Processing by Spud::Admin::PagesController#update as HTML
1108
1105
  Parameters: {"spud_page"=>{"name"=>"Adam", "url_name"=>"page11", "publish_at"=>nil, "created_by"=>nil, "updated_by"=>nil, "format"=>"html", "spud_page_id"=>nil, "meta_description"=>nil, "meta_keywords"=>nil, "page_order"=>nil, "visibility"=>"0", "published"=>true, "use_custom_url_name"=>false, "notes"=>nil, "layout"=>nil}, "id"=>"20"}
1109
- SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 34 LIMIT 1
1110
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 20 LIMIT 1
1111
- SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (20)
1112
-  (0.1ms) SAVEPOINT active_record_2
1113
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0 AND (id != 20)
1114
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'adam' LIMIT 1
1115
- SpudPermalink Exists (0.3ms) SELECT 1 AS one FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'page11' AND `spud_permalinks`.`site_id` = 0) LIMIT 1
1116
- SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (20, 'SpudPage', '2013-02-20 13:04:28', 0, '2013-02-20 13:04:28', 'page11')
1117
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Adam' AND `spud_pages`.`id` != 20 AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1118
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'adam' AND `spud_pages`.`id` != 20 AND `spud_pages`.`site_id` = 0) LIMIT 1
1119
-  (0.1ms) UPDATE `spud_pages` SET `name` = 'Adam', `url_name` = 'adam', `updated_at` = '2013-02-20 13:04:28' WHERE `spud_pages`.`id` = 20
1120
-  (0.0ms) RELEASE SAVEPOINT active_record_2
1106
+ SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 34 LIMIT 1
1107
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 20 LIMIT 1
1108
+ SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (20)
1109
+  (0.1ms) SAVEPOINT active_record_2
1110
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0 AND (id != 20)
1111
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'adam' LIMIT 1
1112
+ SpudPermalink Exists (0.2ms) SELECT 1 AS one FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'page11' AND `spud_permalinks`.`site_id` = 0) LIMIT 1
1113
+ SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (20, 'SpudPage', '2013-03-09 02:53:28', 0, '2013-03-09 02:53:28', 'page11')
1114
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Adam' AND `spud_pages`.`id` != 20 AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1115
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'adam' AND `spud_pages`.`id` != 20 AND `spud_pages`.`site_id` = 0) LIMIT 1
1116
+  (0.1ms) UPDATE `spud_pages` SET `name` = 'Adam', `url_name` = 'adam', `updated_at` = '2013-03-09 02:53:28' WHERE `spud_pages`.`id` = 20
1117
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1121
1118
  Redirected to http://test.host/spud/admin/pages
1122
- Completed 302 Found in 12ms (ActiveRecord: 2.1ms)
1123
-  (0.4ms) ROLLBACK
1124
-  (0.0ms) ROLLBACK
1125
-  (0.0ms) BEGIN
1119
+ Completed 302 Found in 12ms (ActiveRecord: 2.2ms)
1120
+  (0.4ms) ROLLBACK
1121
+  (0.0ms) ROLLBACK
1126
1122
   (0.0ms) BEGIN
1127
-  (0.1ms) SAVEPOINT active_record_2
1128
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
1129
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
1130
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '810a6d1833d2b6b8ddfc86447c2a15d16ef94f99940c5887931c7b97f5cb16a022cce177fa6543e4b7898c9a9c0c5e01859e136af0c1eb633162e39065507b29' LIMIT 1
1131
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'SOizZc8PV0JlBlRBnJe' LIMIT 1
1132
- SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:28', 'a121f564c9aa98b214cbd0bda59095cea1b70a257a254788910146e17ca5e09efbdaab92c17152def061d84cc4467b6ee1d5a6870f18599356941dac9f2c4b15', '2013-02-20 13:04:28', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:28', 'testuser', 1, 'WaPgMKe965RGkOQoejlI', 'QUETmmnlgnLip94UW9WT', '810a6d1833d2b6b8ddfc86447c2a15d16ef94f99940c5887931c7b97f5cb16a022cce177fa6543e4b7898c9a9c0c5e01859e136af0c1eb633162e39065507b29', 'SOizZc8PV0JlBlRBnJe', 1, NULL, '2013-02-20 13:04:28')
1133
-  (0.0ms) RELEASE SAVEPOINT active_record_2
1123
+  (0.0ms) BEGIN
1134
1124
   (0.1ms) SAVEPOINT active_record_2
1135
-  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:28', `last_login_ip` = '0.0.0.0', `perishable_token` = 'OsQmp2wzaykfkWHWLsUG', `updated_at` = '2013-02-20 13:04:28' WHERE `spud_users`.`id` = 35
1136
-  (0.0ms) RELEASE SAVEPOINT active_record_2
1125
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
1126
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
1127
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'e95849e1e58f9d18c9fb877565817601828b2eb9389539dcdbd09384dc091ff22db2c76b0f71e2257dac33a17d3e6ce97fa0e8ca39ba48d4abd68d72dc274eb5' LIMIT 1
1128
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'owxGoc0jw4gWw4z1Kcf' LIMIT 1
1129
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:28', '3bfd799cd12873400bbe704f59870ff0d3387cfb82964032c64c716feb420b18ab35666fcaa29bd3fe7282331187144b6286a24453703d9259670a8dc634a496', '2013-03-09 02:53:28', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:28', 'testuser', 1, 'SWE2rtqQ837iYD8VC3wT', 'FPBivXpuyOSBMxmkg', 'e95849e1e58f9d18c9fb877565817601828b2eb9389539dcdbd09384dc091ff22db2c76b0f71e2257dac33a17d3e6ce97fa0e8ca39ba48d4abd68d72dc274eb5', 'owxGoc0jw4gWw4z1Kcf', 1, NULL, '2013-03-09 02:53:28')
1130
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1137
1131
   (0.1ms) SAVEPOINT active_record_2
1138
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1139
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page12' LIMIT 1
1140
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page12' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1141
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page12' AND `spud_pages`.`site_id` = 0) LIMIT 1
1142
- SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page12', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'page12', 0, 0)
1132
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:28', `last_login_ip` = '0.0.0.0', `perishable_token` = '9VdF29zNJpMO0NUPTeIS', `updated_at` = '2013-03-09 02:53:28' WHERE `spud_users`.`id` = 35
1143
1133
   (0.1ms) RELEASE SAVEPOINT active_record_2
1144
-  (0.1ms) SELECT COUNT(*) FROM `spud_pages` 
1145
- Processing by Spud::Admin::PagesController#destroy as HTML
1146
- Parameters: {"id"=>"21"}
1147
- SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 35 LIMIT 1
1148
- SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 21 LIMIT 1
1149
- SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (21)
1150
1134
   (0.1ms) SAVEPOINT active_record_2
1151
- SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 21
1152
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 21 AND `spud_permalinks`.`attachment_type` = 'SpudPage'
1153
- SQL (0.1ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 21
1135
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1136
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page12' LIMIT 1
1137
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page12' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1138
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page12' AND `spud_pages`.`site_id` = 0) LIMIT 1
1139
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page12', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'page12', 0, 0)
1154
1140
   (0.1ms) RELEASE SAVEPOINT active_record_2
1141
+  (0.1ms) SELECT COUNT(*) FROM `spud_pages`
1142
+ Processing by Spud::Admin::PagesController#destroy as HTML
1143
+ Parameters: {"id"=>"21"}
1144
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 35 LIMIT 1
1145
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 21 LIMIT 1
1146
+ SpudPagePartial Load (0.1ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (21)
1147
+  (0.1ms) SAVEPOINT active_record_2
1148
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 21
1149
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 21 AND `spud_permalinks`.`attachment_type` = 'SpudPage'
1150
+ SQL (0.1ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 21
1151
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1155
1152
  Redirected to http://test.host/spud/admin/pages
1156
- Completed 302 Found in 10ms (ActiveRecord: 1.6ms)
1157
-  (0.3ms) SELECT COUNT(*) FROM `spud_pages`
1158
-  (2.7ms) ROLLBACK
1159
-  (0.0ms) ROLLBACK
1160
-  (0.1ms) BEGIN
1153
+ Completed 302 Found in 9ms (ActiveRecord: 1.2ms)
1154
+  (0.2ms) SELECT COUNT(*) FROM `spud_pages` 
1155
+  (0.4ms) ROLLBACK
1156
+  (0.1ms) ROLLBACK
1161
1157
   (0.0ms) BEGIN
1162
-  (0.2ms) SAVEPOINT active_record_2
1163
- SpudUser Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
1164
- SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
1165
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '53ac421d2f1617cdbd8ed5b37d8e452e1960e242657e35eea8407327f3d6a90fd34b89a2a1818a9684bab15702e3bdb84314d2e5df337ff8413b87a6c471379c' LIMIT 1
1166
- SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'wS9tGfOfNJlqLkGtUlw' LIMIT 1
1167
- SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-02-20 13:04:28', 'd832dc3d5b80377356581108a7648d60716239058ca594870c326b947847fe3c6dc84679fb37ce6e7ba35beef22765dcba0abbb199bb2a408d1e5db481e036fd', '2013-02-20 13:04:28', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-02-20 13:04:28', 'testuser', 1, 'rWuNPv5cqkh9Eysrzzmv', 'lx9BkEZJmu7n4hJ88FXm', '53ac421d2f1617cdbd8ed5b37d8e452e1960e242657e35eea8407327f3d6a90fd34b89a2a1818a9684bab15702e3bdb84314d2e5df337ff8413b87a6c471379c', 'wS9tGfOfNJlqLkGtUlw', 1, NULL, '2013-02-20 13:04:28')
1168
-  (0.0ms) RELEASE SAVEPOINT active_record_2
1169
-  (0.2ms) SAVEPOINT active_record_2
1170
-  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-02-20 13:04:28', `last_login_ip` = '0.0.0.0', `perishable_token` = 'ahUUC9DeoOPmq2rhhtH', `updated_at` = '2013-02-20 13:04:28' WHERE `spud_users`.`id` = 36
1158
+  (0.0ms) BEGIN
1159
+  (0.1ms) SAVEPOINT active_record_2
1160
+ SpudUser Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
1161
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
1162
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '61dad0a6a08f21f16f35c2d8170ebb1d2ba8d8c8cad80d97779cabbdbd1dd4ba238e1ad88076d70b24b63495b81a2be65f64e085b714ed818ca70d2dcaf7c5f0' LIMIT 1
1163
+ SpudUser Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'DXHux1vPoJATpseAePZ' LIMIT 1
1164
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2013-03-09 02:53:28', '27c2fff5e23b55556b66436ccd9db26304f1549db6845201a22d52d158a96d5f328f99a49366a26415e2077f2df417ec16a4acaa2da59b15e48503b9419f2889', '2013-03-09 02:53:28', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2013-03-09 02:53:28', 'testuser', 1, 'pX1JU7fbboVytxK0rV8', 'u2Us8QYzVo0h7g7ayv3S', '61dad0a6a08f21f16f35c2d8170ebb1d2ba8d8c8cad80d97779cabbdbd1dd4ba238e1ad88076d70b24b63495b81a2be65f64e085b714ed818ca70d2dcaf7c5f0', 'DXHux1vPoJATpseAePZ', 1, NULL, '2013-03-09 02:53:28')
1171
1165
   (0.1ms) RELEASE SAVEPOINT active_record_2
1172
1166
   (0.1ms) SAVEPOINT active_record_2
1173
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1174
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page13' LIMIT 1
1175
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page13' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1176
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page13' AND `spud_pages`.`site_id` = 0) LIMIT 1
1177
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page13', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'page13', 0, 0)
1167
+  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2013-03-09 02:53:28', `last_login_ip` = '0.0.0.0', `perishable_token` = 'vJrfxYmwpZnINIMJ2Dtq', `updated_at` = '2013-03-09 02:53:28' WHERE `spud_users`.`id` = 36
1178
1168
   (0.1ms) RELEASE SAVEPOINT active_record_2
1179
-  (0.1ms) SELECT COUNT(*) FROM `spud_pages`
1169
+  (0.1ms) SAVEPOINT active_record_2
1170
+ SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1171
+ SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page13' LIMIT 1
1172
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page13' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1173
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page13' AND `spud_pages`.`site_id` = 0) LIMIT 1
1174
+ SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page13', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'page13', 0, 0)
1175
+  (0.2ms) RELEASE SAVEPOINT active_record_2
1176
+  (0.2ms) SELECT COUNT(*) FROM `spud_pages` 
1180
1177
  Processing by Spud::Admin::PagesController#destroy as HTML
1181
1178
  Parameters: {"id"=>"23532"}
1182
- SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 36 LIMIT 1
1183
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 23532 LIMIT 1
1179
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 36 LIMIT 1
1180
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 23532 LIMIT 1
1184
1181
  Redirected to http://test.host/spud/admin/pages
1185
1182
  Filter chain halted as :load_page rendered or redirected
1186
1183
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1187
-  (0.2ms) SELECT COUNT(*) FROM `spud_pages` 
1188
-  (0.7ms) ROLLBACK
1189
-  (0.0ms) ROLLBACK
1190
-  (0.0ms) BEGIN
1184
+  (0.2ms) SELECT COUNT(*) FROM `spud_pages`
1185
+  (0.5ms) ROLLBACK
1186
+  (0.1ms) ROLLBACK
1191
1187
   (0.0ms) BEGIN
1188
+  (0.0ms) BEGIN
1192
1189
  Processing by Spud::Cms::SitemapsController#show as XML
1190
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id
1191
+ Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 0.2ms)
1193
1192
  SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id
1194
- Completed 200 OK in 16ms (Views: 13.4ms | ActiveRecord: 0.3ms)
1195
- SpudPage Load (0.9ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id
1193
+  (0.1ms) ROLLBACK
1196
1194
   (0.1ms) ROLLBACK
1197
-  (0.0ms) ROLLBACK
1198
-  (0.0ms) BEGIN
1199
1195
   (0.0ms) BEGIN
1196
+  (0.0ms) BEGIN
1200
1197
  Processing by Spud::Cms::SitemapsController#show as HTML
1201
- SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id
1198
+ SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id
1202
1199
  Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)
1203
-  (0.1ms) ROLLBACK
1204
-  (0.1ms) ROLLBACK
1205
-  (0.1ms) BEGIN
1200
+  (0.2ms) ROLLBACK
1201
+  (0.0ms) ROLLBACK
1206
1202
   (0.0ms) BEGIN
1207
-  (0.1ms) SAVEPOINT active_record_2
1208
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1209
- SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page14' LIMIT 1
1210
- SpudPage Exists (0.3ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page14' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1211
- SpudPage Exists (0.3ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page14' AND `spud_pages`.`site_id` = 0) LIMIT 1
1212
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page14', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'page14', 0, 0)
1213
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1214
-  (0.1ms) SAVEPOINT active_record_2
1215
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1216
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page15' LIMIT 1
1217
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page15' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1218
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page15' AND `spud_pages`.`site_id` = 0) LIMIT 1
1219
- SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page15', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'page15', 0, 0)
1220
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1221
-  (0.1ms) SAVEPOINT active_record_2
1222
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 1
1223
- SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 1 AND `spud_permalinks`.`url_name` = 'page16' LIMIT 1
1224
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page16' AND `spud_pages`.`site_id` = 1 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1225
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page16' AND `spud_pages`.`site_id` = 1) LIMIT 1
1226
- SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page16', NULL, NULL, NULL, 1, 1, NULL, '2013-02-20 13:04:28', NULL, 'page16', 0, 0)
1227
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1203
+  (0.1ms) BEGIN
1228
1204
   (0.1ms) SAVEPOINT active_record_2
1229
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 1
1230
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 1 AND `spud_permalinks`.`url_name` = 'page17' LIMIT 1
1231
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page17' AND `spud_pages`.`site_id` = 1 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1232
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page17' AND `spud_pages`.`site_id` = 1) LIMIT 1
1233
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page17', NULL, NULL, NULL, 1, 1, NULL, '2013-02-20 13:04:28', NULL, 'page17', 0, 0)
1205
+ SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1206
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page14' LIMIT 1
1207
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page14' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1208
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page14' AND `spud_pages`.`site_id` = 0) LIMIT 1
1209
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page14', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'page14', 0, 0)
1234
1210
   (0.2ms) RELEASE SAVEPOINT active_record_2
1235
1211
   (0.1ms) SAVEPOINT active_record_2
1236
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 1
1237
- SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 1 AND `spud_permalinks`.`url_name` = 'page18' LIMIT 1
1238
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page18' AND `spud_pages`.`site_id` = 1 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1239
- SpudPage Exists (0.3ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page18' AND `spud_pages`.`site_id` = 1) LIMIT 1
1240
- SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page18', NULL, NULL, NULL, 1, 1, NULL, '2013-02-20 13:04:28', NULL, 'page18', 0, 0)
1241
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1242
- Processing by Spud::Cms::SitemapsController#show as XML
1243
- SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 AND `spud_pages`.`site_id` = 1 ORDER BY spud_page_id
1244
- Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.4ms)
1245
- SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 AND `spud_pages`.`site_id` = 1 ORDER BY spud_page_id
1246
-  (0.5ms) ROLLBACK
1247
-  (0.1ms) ROLLBACK
1248
-  (0.1ms) BEGIN
1249
-  (0.1ms) BEGIN
1250
-  (0.2ms) SAVEPOINT active_record_2
1251
- SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Main' AND `spud_menus`.`site_id` = 0) LIMIT 1
1252
- SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:28', NULL, 'Main', 0, '2013-02-20 13:04:28')
1253
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1212
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1213
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page15' LIMIT 1
1214
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page15' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1215
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page15' AND `spud_pages`.`site_id` = 0) LIMIT 1
1216
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page15', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'page15', 0, 0)
1217
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1254
1218
   (0.0ms) SAVEPOINT active_record_2
1255
- SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:28', NULL, 0, 'Menu Item 15', 25, 'SpudMenu', 25, NULL, '2013-02-20 13:04:28', '/')
1219
+ SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 1
1220
+ SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 1 AND `spud_permalinks`.`url_name` = 'page16' LIMIT 1
1221
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page16' AND `spud_pages`.`site_id` = 1 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1222
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page16' AND `spud_pages`.`site_id` = 1) LIMIT 1
1223
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page16', NULL, NULL, NULL, 1, 1, NULL, '2013-03-09 02:53:28', NULL, 'page16', 0, 0)
1256
1224
   (0.0ms) RELEASE SAVEPOINT active_record_2
1257
1225
   (0.0ms) SAVEPOINT active_record_2
1258
- SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:28', NULL, 0, 'Menu Item 16', 25, 'SpudMenu', 25, NULL, '2013-02-20 13:04:28', '/')
1259
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1260
- SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`name` = 'Main' LIMIT 1
1261
- SpudMenuItem Load (0.3ms) SELECT
1262
- spud_menu_items.id as id,
1263
- spud_menu_items.url as url,
1264
- spud_menu_items.classes as classes,
1265
- spud_menu_items.parent_type as parent_type,
1266
- spud_menu_items.menu_order as menu_order,
1267
- spud_menu_items.parent_id as parent_id,
1268
- spud_menu_items.name as name,
1269
- spud_pages.url_name as url_name FROM `spud_menu_items` LEFT JOIN spud_pages ON (spud_pages.id = spud_menu_items.spud_page_id) WHERE `spud_menu_items`.`spud_menu_id` = 25 ORDER BY parent_type, parent_id
1270
-  (0.3ms) ROLLBACK
1271
-  (0.0ms) ROLLBACK
1272
-  (0.0ms) BEGIN
1273
-  (0.0ms) BEGIN
1274
-  (0.2ms) SAVEPOINT active_record_2
1275
- SpudMenu Exists (0.3ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu25' AND `spud_menus`.`site_id` = 0) LIMIT 1
1276
- SQL (0.2ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:28', NULL, 'Menu25', 0, '2013-02-20 13:04:28')
1226
+ SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 1
1227
+ SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 1 AND `spud_permalinks`.`url_name` = 'page17' LIMIT 1
1228
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page17' AND `spud_pages`.`site_id` = 1 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1229
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page17' AND `spud_pages`.`site_id` = 1) LIMIT 1
1230
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page17', NULL, NULL, NULL, 1, 1, NULL, '2013-03-09 02:53:28', NULL, 'page17', 0, 0)
1277
1231
   (0.1ms) RELEASE SAVEPOINT active_record_2
1278
1232
   (0.1ms) SAVEPOINT active_record_2
1279
- SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:28', NULL, 0, 'Menu Item 17', 26, 'SpudMenu', 26, NULL, '2013-02-20 13:04:28', '/')
1233
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 1
1234
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 1 AND `spud_permalinks`.`url_name` = 'page18' LIMIT 1
1235
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page18' AND `spud_pages`.`site_id` = 1 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1236
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page18' AND `spud_pages`.`site_id` = 1) LIMIT 1
1237
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page18', NULL, NULL, NULL, 1, 1, NULL, '2013-03-09 02:53:28', NULL, 'page18', 0, 0)
1238
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1239
+ Processing by Spud::Cms::SitemapsController#show as XML
1240
+ SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 AND `spud_pages`.`site_id` = 1 ORDER BY spud_page_id
1241
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.3ms)
1242
+ SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 AND `spud_pages`.`site_id` = 1 ORDER BY spud_page_id
1243
+  (0.4ms) ROLLBACK
1244
+  (0.1ms) ROLLBACK
1245
+  (0.0ms) BEGIN
1246
+  (0.0ms) BEGIN
1247
+  (0.2ms) SAVEPOINT active_record_2
1248
+ SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Main' AND `spud_menus`.`site_id` = 0) LIMIT 1
1249
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:28', NULL, 'Main', 0, '2013-03-09 02:53:28')
1280
1250
   (0.1ms) RELEASE SAVEPOINT active_record_2
1281
1251
   (0.1ms) SAVEPOINT active_record_2
1282
- SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:28', NULL, 0, 'Menu Item 18', 26, 'SpudMenu', 26, NULL, '2013-02-20 13:04:28', '/')
1252
+ SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:28', NULL, 0, 'Menu Item 15', 25, 'SpudMenu', 25, NULL, '2013-03-09 02:53:28', '/')
1283
1253
   (0.1ms) RELEASE SAVEPOINT active_record_2
1284
- SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`name` = 'Menu25' LIMIT 1
1285
- SpudMenuItem Load (0.3ms) SELECT
1254
+  (0.1ms) SAVEPOINT active_record_2
1255
+ SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:28', NULL, 0, 'Menu Item 16', 25, 'SpudMenu', 25, NULL, '2013-03-09 02:53:28', '/')
1256
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1257
+ SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`name` = 'Main' LIMIT 1
1258
+ SpudMenuItem Load (0.3ms) SELECT
1286
1259
  spud_menu_items.id as id,
1287
1260
  spud_menu_items.url as url,
1288
1261
  spud_menu_items.classes as classes,
@@ -1290,26 +1263,23 @@ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.4ms)
1290
1263
  spud_menu_items.menu_order as menu_order,
1291
1264
  spud_menu_items.parent_id as parent_id,
1292
1265
  spud_menu_items.name as name,
1293
- spud_pages.url_name as url_name FROM `spud_menu_items` LEFT JOIN spud_pages ON (spud_pages.id = spud_menu_items.spud_page_id) WHERE `spud_menu_items`.`spud_menu_id` = 26 ORDER BY parent_type, parent_id
1294
-  (0.4ms) ROLLBACK
1295
-  (0.1ms) ROLLBACK
1296
-  (0.1ms) BEGIN
1297
-  (0.1ms) BEGIN
1298
-  (0.1ms) SAVEPOINT active_record_2
1299
- SpudMenu Exists (0.3ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Main2' AND `spud_menus`.`site_id` = 0) LIMIT 1
1300
- SQL (0.2ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:28', NULL, 'Main2', 0, '2013-02-20 13:04:28')
1301
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1302
-  (0.1ms) SAVEPOINT active_record_2
1303
- SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:28', NULL, 0, 'Menu Item 19', 27, 'SpudMenu', 27, NULL, '2013-02-20 13:04:28', '/')
1304
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1266
+ spud_pages.url_name as url_name FROM `spud_menu_items` LEFT JOIN spud_pages ON (spud_pages.id = spud_menu_items.spud_page_id) WHERE `spud_menu_items`.`spud_menu_id` = 25 ORDER BY parent_type, parent_id
1267
+  (0.4ms) ROLLBACK
1268
+  (0.0ms) ROLLBACK
1269
+  (0.0ms) BEGIN
1270
+  (0.0ms) BEGIN
1271
+  (0.1ms) SAVEPOINT active_record_2
1272
+ SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu25' AND `spud_menus`.`site_id` = 0) LIMIT 1
1273
+ SQL (0.2ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:28', NULL, 'Menu25', 0, '2013-03-09 02:53:28')
1274
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1305
1275
   (0.1ms) SAVEPOINT active_record_2
1306
- SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:28', NULL, 0, 'Menu Item 20', 27, 'SpudMenu', 27, NULL, '2013-02-20 13:04:28', '/')
1276
+ SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:28', NULL, 0, 'Menu Item 17', 26, 'SpudMenu', 26, NULL, '2013-03-09 02:53:28', '/')
1307
1277
   (0.1ms) RELEASE SAVEPOINT active_record_2
1308
1278
   (0.1ms) SAVEPOINT active_record_2
1309
- SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:28', NULL, 0, 'SubItem', 20, 'SpudMenuItem', 27, NULL, '2013-02-20 13:04:28', '/')
1279
+ SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:28', NULL, 0, 'Menu Item 18', 26, 'SpudMenu', 26, NULL, '2013-03-09 02:53:28', '/')
1310
1280
   (0.1ms) RELEASE SAVEPOINT active_record_2
1311
- SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`name` = 'Main2' LIMIT 1
1312
- SpudMenuItem Load (0.2ms) SELECT
1281
+ SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`name` = 'Menu25' LIMIT 1
1282
+ SpudMenuItem Load (0.3ms) SELECT
1313
1283
  spud_menu_items.id as id,
1314
1284
  spud_menu_items.url as url,
1315
1285
  spud_menu_items.classes as classes,
@@ -1317,25 +1287,25 @@ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.4ms)
1317
1287
  spud_menu_items.menu_order as menu_order,
1318
1288
  spud_menu_items.parent_id as parent_id,
1319
1289
  spud_menu_items.name as name,
1320
- spud_pages.url_name as url_name FROM `spud_menu_items` LEFT JOIN spud_pages ON (spud_pages.id = spud_menu_items.spud_page_id) WHERE `spud_menu_items`.`spud_menu_id` = 27 ORDER BY parent_type, parent_id
1321
-  (0.6ms) ROLLBACK
1290
+ spud_pages.url_name as url_name FROM `spud_menu_items` LEFT JOIN spud_pages ON (spud_pages.id = spud_menu_items.spud_page_id) WHERE `spud_menu_items`.`spud_menu_id` = 26 ORDER BY parent_type, parent_id
1291
+  (0.3ms) ROLLBACK
1322
1292
   (0.0ms) ROLLBACK
1323
1293
   (0.0ms) BEGIN
1324
1294
   (0.0ms) BEGIN
1325
-  (0.1ms) SAVEPOINT active_record_2
1326
- SpudMenu Exists (0.3ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Main4' AND `spud_menus`.`site_id` = 0) LIMIT 1
1327
- SQL (0.2ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:28', NULL, 'Main4', 0, '2013-02-20 13:04:28')
1295
+  (0.2ms) SAVEPOINT active_record_2
1296
+ SpudMenu Exists (0.3ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Main2' AND `spud_menus`.`site_id` = 0) LIMIT 1
1297
+ SQL (0.2ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:28', NULL, 'Main2', 0, '2013-03-09 02:53:28')
1328
1298
   (0.1ms) RELEASE SAVEPOINT active_record_2
1329
1299
   (0.1ms) SAVEPOINT active_record_2
1330
- SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:28', NULL, 0, 'Menu Item 21', 28, 'SpudMenu', 28, NULL, '2013-02-20 13:04:28', '/')
1331
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1300
+ SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:28', NULL, 0, 'Menu Item 19', 27, 'SpudMenu', 27, NULL, '2013-03-09 02:53:28', '/')
1301
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1332
1302
   (0.1ms) SAVEPOINT active_record_2
1333
- SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:28', NULL, 0, 'Menu Item 22', 28, 'SpudMenu', 28, NULL, '2013-02-20 13:04:28', '/')
1334
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1303
+ SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:28', NULL, 0, 'Menu Item 20', 27, 'SpudMenu', 27, NULL, '2013-03-09 02:53:28', '/')
1304
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1335
1305
   (0.0ms) SAVEPOINT active_record_2
1336
- SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:28', NULL, 0, 'SubItem', 23, 'SpudMenuItem', 28, NULL, '2013-02-20 13:04:28', '/')
1306
+ SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:28', NULL, 0, 'SubItem', 20, 'SpudMenuItem', 27, NULL, '2013-03-09 02:53:28', '/')
1337
1307
   (0.1ms) RELEASE SAVEPOINT active_record_2
1338
- SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`name` = 'Main4' LIMIT 1
1308
+ SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`name` = 'Main2' LIMIT 1
1339
1309
  SpudMenuItem Load (0.2ms) SELECT
1340
1310
  spud_menu_items.id as id,
1341
1311
  spud_menu_items.url as url,
@@ -1344,38 +1314,26 @@ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.4ms)
1344
1314
  spud_menu_items.menu_order as menu_order,
1345
1315
  spud_menu_items.parent_id as parent_id,
1346
1316
  spud_menu_items.name as name,
1347
- spud_pages.url_name as url_name FROM `spud_menu_items` LEFT JOIN spud_pages ON (spud_pages.id = spud_menu_items.spud_page_id) WHERE `spud_menu_items`.`spud_menu_id` = 28 ORDER BY parent_type, parent_id
1317
+ spud_pages.url_name as url_name FROM `spud_menu_items` LEFT JOIN spud_pages ON (spud_pages.id = spud_menu_items.spud_page_id) WHERE `spud_menu_items`.`spud_menu_id` = 27 ORDER BY parent_type, parent_id
1348
1318
   (0.2ms) ROLLBACK
1349
-  (0.1ms) ROLLBACK
1350
-  (0.0ms) BEGIN
1351
-  (0.0ms) BEGIN
1352
-  (0.1ms) SAVEPOINT active_record_2
1353
- SpudMenu Exists (0.3ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu26' AND `spud_menus`.`site_id` = 0) LIMIT 1
1354
- SQL (0.2ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:28', NULL, 'Menu26', 0, '2013-02-20 13:04:28')
1355
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1356
-  (0.1ms) SAVEPOINT active_record_2
1357
- SQL (0.3ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:28', NULL, 0, 'Menu Item 23', 29, 'SpudMenu', 29, NULL, '2013-02-20 13:04:28', '/')
1358
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1359
- SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`site_id` = 1 AND `spud_menus`.`name` = 'Menu26' LIMIT 1
1360
-  (0.4ms) ROLLBACK
1361
1319
   (0.0ms) ROLLBACK
1362
1320
   (0.0ms) BEGIN
1363
-  (0.1ms) BEGIN
1364
-  (0.1ms) SAVEPOINT active_record_2
1365
- SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Main3' AND `spud_menus`.`site_id` = 0) LIMIT 1
1366
- SQL (0.2ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:28', NULL, 'Main3', 0, '2013-02-20 13:04:28')
1367
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1368
-  (0.1ms) SAVEPOINT active_record_2
1369
- SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:28', NULL, 0, 'Menu Item 24', 30, 'SpudMenu', 30, NULL, '2013-02-20 13:04:28', '/')
1321
+  (0.0ms) BEGIN
1322
+  (0.0ms) SAVEPOINT active_record_2
1323
+ SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Main4' AND `spud_menus`.`site_id` = 0) LIMIT 1
1324
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:28', NULL, 'Main4', 0, '2013-03-09 02:53:28')
1325
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1326
+  (0.0ms) SAVEPOINT active_record_2
1327
+ SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:28', NULL, 0, 'Menu Item 21', 28, 'SpudMenu', 28, NULL, '2013-03-09 02:53:28', '/')
1370
1328
   (0.1ms) RELEASE SAVEPOINT active_record_2
1371
1329
   (0.1ms) SAVEPOINT active_record_2
1372
- SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:28', NULL, 0, 'Menu Item 25', 30, 'SpudMenu', 30, NULL, '2013-02-20 13:04:28', '/')
1373
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1374
-  (0.1ms) SAVEPOINT active_record_2
1375
- SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:28', NULL, 0, 'SubItem', 27, 'SpudMenuItem', 30, NULL, '2013-02-20 13:04:28', '/')
1376
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1377
- SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`name` = 'Main3' LIMIT 1
1378
- SpudMenuItem Load (0.3ms) SELECT
1330
+ SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:28', NULL, 0, 'Menu Item 22', 28, 'SpudMenu', 28, NULL, '2013-03-09 02:53:28', '/')
1331
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1332
+  (0.0ms) SAVEPOINT active_record_2
1333
+ SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:28', NULL, 0, 'SubItem', 23, 'SpudMenuItem', 28, NULL, '2013-03-09 02:53:28', '/')
1334
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1335
+ SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`name` = 'Main4' LIMIT 1
1336
+ SpudMenuItem Load (0.2ms) SELECT
1379
1337
  spud_menu_items.id as id,
1380
1338
  spud_menu_items.url as url,
1381
1339
  spud_menu_items.classes as classes,
@@ -1383,454 +1341,506 @@ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.4ms)
1383
1341
  spud_menu_items.menu_order as menu_order,
1384
1342
  spud_menu_items.parent_id as parent_id,
1385
1343
  spud_menu_items.name as name,
1386
- spud_pages.url_name as url_name FROM `spud_menu_items` LEFT JOIN spud_pages ON (spud_pages.id = spud_menu_items.spud_page_id) WHERE `spud_menu_items`.`spud_menu_id` = 30 ORDER BY parent_type, parent_id
1387
-  (0.3ms) ROLLBACK
1344
+ spud_pages.url_name as url_name FROM `spud_menu_items` LEFT JOIN spud_pages ON (spud_pages.id = spud_menu_items.spud_page_id) WHERE `spud_menu_items`.`spud_menu_id` = 28 ORDER BY parent_type, parent_id
1345
+  (0.2ms) ROLLBACK
1388
1346
   (0.0ms) ROLLBACK
1389
1347
   (0.0ms) BEGIN
1390
1348
   (0.0ms) BEGIN
1391
-  (0.2ms) SAVEPOINT active_record_2
1392
- SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu27' AND `spud_menus`.`site_id` = 0) LIMIT 1
1393
- SQL (0.2ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-02-20 13:04:28', NULL, 'Menu27', 0, '2013-02-20 13:04:28')
1394
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1349
+  (0.0ms) SAVEPOINT active_record_2
1350
+ SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu26' AND `spud_menus`.`site_id` = 0) LIMIT 1
1351
+ SQL (0.2ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:28', NULL, 'Menu26', 0, '2013-03-09 02:53:28')
1352
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1395
1353
   (0.1ms) SAVEPOINT active_record_2
1396
- SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-02-20 13:04:28', NULL, 0, 'Menu Item 26', 31, 'SpudMenu', 31, NULL, '2013-02-20 13:04:28', '/')
1397
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1398
- SpudMenu Load (0.3ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`name` = 'Menu27' AND `spud_menus`.`site_id` = 1 LIMIT 1
1399
-  (0.4ms) ROLLBACK
1354
+ SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:28', NULL, 0, 'Menu Item 23', 29, 'SpudMenu', 29, NULL, '2013-03-09 02:53:28', '/')
1355
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1356
+ SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`site_id` = 1 AND `spud_menus`.`name` = 'Menu26' LIMIT 1
1357
+  (0.2ms) ROLLBACK
1400
1358
   (0.0ms) ROLLBACK
1401
-  (0.0ms) BEGIN
1402
-  (0.1ms) BEGIN
1403
-  (0.1ms) SAVEPOINT active_record_2
1404
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1405
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page19' LIMIT 1
1406
- SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page19' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1407
- SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page19' AND `spud_pages`.`site_id` = 0) LIMIT 1
1408
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page19', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'page19', 0, 0)
1409
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1359
+  (0.1ms) BEGIN
1360
+  (0.0ms) BEGIN
1361
+  (0.0ms) SAVEPOINT active_record_2
1362
+ SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Main3' AND `spud_menus`.`site_id` = 0) LIMIT 1
1363
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:28', NULL, 'Main3', 0, '2013-03-09 02:53:28')
1364
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1365
+  (0.0ms) SAVEPOINT active_record_2
1366
+ SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:28', NULL, 0, 'Menu Item 24', 30, 'SpudMenu', 30, NULL, '2013-03-09 02:53:28', '/')
1367
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1410
1368
   (0.0ms) SAVEPOINT active_record_2
1411
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1412
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page20' LIMIT 1
1413
- SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page20' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1414
- SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page20' AND `spud_pages`.`site_id` = 0) LIMIT 1
1415
- SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page20', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'page20', 0, 0)
1416
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1417
-  (0.1ms) SAVEPOINT active_record_2
1418
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 28 LIMIT 1
1419
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1420
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page19/page21' LIMIT 1
1421
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page21' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` = 28) LIMIT 1
1422
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page19/page21' AND `spud_pages`.`site_id` = 0) LIMIT 1
1423
- SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page21', NULL, NULL, NULL, 1, 0, 28, '2013-02-20 13:04:28', NULL, 'page19/page21', 0, 0)
1424
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1425
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`visibility` = 0 AND `spud_pages`.`published` = 1
1426
-  (1.0ms) ROLLBACK
1369
+ SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:28', NULL, 0, 'Menu Item 25', 30, 'SpudMenu', 30, NULL, '2013-03-09 02:53:28', '/')
1370
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1371
+  (0.0ms) SAVEPOINT active_record_2
1372
+ SQL (0.1ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:28', NULL, 0, 'SubItem', 27, 'SpudMenuItem', 30, NULL, '2013-03-09 02:53:28', '/')
1373
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1374
+ SpudMenu Load (0.1ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`name` = 'Main3' LIMIT 1
1375
+ SpudMenuItem Load (0.2ms) SELECT
1376
+ spud_menu_items.id as id,
1377
+ spud_menu_items.url as url,
1378
+ spud_menu_items.classes as classes,
1379
+ spud_menu_items.parent_type as parent_type,
1380
+ spud_menu_items.menu_order as menu_order,
1381
+ spud_menu_items.parent_id as parent_id,
1382
+ spud_menu_items.name as name,
1383
+ spud_pages.url_name as url_name FROM `spud_menu_items` LEFT JOIN spud_pages ON (spud_pages.id = spud_menu_items.spud_page_id) WHERE `spud_menu_items`.`spud_menu_id` = 30 ORDER BY parent_type, parent_id
1384
+  (0.2ms) ROLLBACK
1427
1385
   (0.1ms) ROLLBACK
1428
1386
   (0.1ms) BEGIN
1429
-  (0.1ms) BEGIN
1430
-  (0.2ms) SAVEPOINT active_record_2
1431
- SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1432
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page22' LIMIT 1
1433
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page22' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1434
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page22' AND `spud_pages`.`site_id` = 0) LIMIT 1
1435
- SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page22', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'page22', 0, 0)
1387
+  (0.0ms) BEGIN
1388
+  (0.1ms) SAVEPOINT active_record_2
1389
+ SpudMenu Exists (0.2ms) SELECT 1 AS one FROM `spud_menus` WHERE (`spud_menus`.`name` = BINARY 'Menu27' AND `spud_menus`.`site_id` = 0) LIMIT 1
1390
+ SQL (0.1ms) INSERT INTO `spud_menus` (`created_at`, `description`, `name`, `site_id`, `updated_at`) VALUES ('2013-03-09 02:53:28', NULL, 'Menu27', 0, '2013-03-09 02:53:28')
1391
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1392
+  (0.1ms) SAVEPOINT active_record_2
1393
+ SQL (0.2ms) INSERT INTO `spud_menu_items` (`classes`, `created_at`, `item_type`, `menu_order`, `name`, `parent_id`, `parent_type`, `spud_menu_id`, `spud_page_id`, `updated_at`, `url`) VALUES (NULL, '2013-03-09 02:53:28', NULL, 0, 'Menu Item 26', 31, 'SpudMenu', 31, NULL, '2013-03-09 02:53:28', '/')
1436
1394
   (0.1ms) RELEASE SAVEPOINT active_record_2
1437
-  (0.1ms) SAVEPOINT active_record_2
1438
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1439
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page23' LIMIT 1
1440
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page23' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1441
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page23' AND `spud_pages`.`site_id` = 0) LIMIT 1
1442
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page23', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'page23', 0, 0)
1443
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1444
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`visibility` = 0 AND `spud_pages`.`published` = 1
1445
-  (0.3ms) ROLLBACK
1446
-  (0.0ms) ROLLBACK
1447
-  (0.1ms) BEGIN
1395
+ SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`name` = 'Menu27' AND `spud_menus`.`site_id` = 1 LIMIT 1
1396
+  (0.3ms) ROLLBACK
1397
+  (0.0ms) ROLLBACK
1448
1398
   (0.1ms) BEGIN
1449
-  (0.1ms) SAVEPOINT active_record_2
1450
- SpudPage Load (0.5ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1451
- SpudPermalink Load (0.4ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page24' LIMIT 1
1452
- SpudPage Exists (0.3ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page24' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1453
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page24' AND `spud_pages`.`site_id` = 0) LIMIT 1
1454
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page24', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'page24', 0, 0)
1455
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1399
+  (0.0ms) BEGIN
1456
1400
   (0.1ms) SAVEPOINT active_record_2
1457
1401
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1458
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page25' LIMIT 1
1459
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page25' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1460
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page25' AND `spud_pages`.`site_id` = 0) LIMIT 1
1461
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page25', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'page25', 0, 0)
1462
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1463
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`visibility` = 0 AND `spud_pages`.`published` = 1 AND (name NOT IN ('Page25'))
1464
-  (0.3ms) ROLLBACK
1465
-  (0.1ms) ROLLBACK
1466
-  (0.0ms) BEGIN
1467
-  (0.0ms) BEGIN
1468
-  (0.2ms) SAVEPOINT active_record_2
1469
- SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1470
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page26' LIMIT 1
1471
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page26' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1472
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page26' AND `spud_pages`.`site_id` = 0) LIMIT 1
1473
- SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page26', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'page26', 0, 0)
1474
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1475
-  (0.1ms) SAVEPOINT active_record_2
1402
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page19' LIMIT 1
1403
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page19' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1404
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page19' AND `spud_pages`.`site_id` = 0) LIMIT 1
1405
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page19', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'page19', 0, 0)
1406
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1407
+  (0.0ms) SAVEPOINT active_record_2
1476
1408
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1477
- SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page27' LIMIT 1
1478
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page27' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1479
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page27' AND `spud_pages`.`site_id` = 0) LIMIT 1
1480
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page27', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'page27', 0, 0)
1409
+ SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page20' LIMIT 1
1410
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page20' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1411
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page20' AND `spud_pages`.`site_id` = 0) LIMIT 1
1412
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page20', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'page20', 0, 0)
1481
1413
   (0.1ms) RELEASE SAVEPOINT active_record_2
1482
-  (0.1ms) SAVEPOINT active_record_2
1483
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 35 LIMIT 1
1414
+  (0.0ms) SAVEPOINT active_record_2
1415
+ SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 28 LIMIT 1
1484
1416
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1485
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page26/page28' LIMIT 1
1486
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page28' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` = 35) LIMIT 1
1487
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page26/page28' AND `spud_pages`.`site_id` = 0) LIMIT 1
1488
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page28', NULL, NULL, NULL, 1, 0, 35, '2013-02-20 13:04:28', NULL, 'page26/page28', 0, 0)
1489
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1490
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`visibility` = 0 AND `spud_pages`.`published` = 1
1491
-  (0.5ms) ROLLBACK
1417
+ SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page19/page21' LIMIT 1
1418
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page21' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` = 28) LIMIT 1
1419
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page19/page21' AND `spud_pages`.`site_id` = 0) LIMIT 1
1420
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page21', NULL, NULL, NULL, 1, 0, 28, '2013-03-09 02:53:28', NULL, 'page19/page21', 0, 0)
1421
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1422
+ SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`visibility` = 0 AND `spud_pages`.`published` = 1
1423
+  (0.3ms) ROLLBACK
1492
1424
   (0.1ms) ROLLBACK
1493
1425
   (0.0ms) BEGIN
1494
-  (0.0ms) BEGIN
1495
-  (0.2ms) SAVEPOINT active_record_2
1496
- SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1497
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page29' LIMIT 1
1498
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page29' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1499
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page29' AND `spud_pages`.`site_id` = 0) LIMIT 1
1500
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page29', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'page29', 0, 0)
1501
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1426
+  (0.1ms) BEGIN
1427
+  (0.0ms) SAVEPOINT active_record_2
1428
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1429
+ SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page22' LIMIT 1
1430
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page22' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1431
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page22' AND `spud_pages`.`site_id` = 0) LIMIT 1
1432
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page22', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'page22', 0, 0)
1433
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1502
1434
   (0.1ms) SAVEPOINT active_record_2
1503
1435
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1504
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page30' LIMIT 1
1505
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page30' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1506
- SpudPage Exists (0.3ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page30' AND `spud_pages`.`site_id` = 0) LIMIT 1
1507
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page30', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'page30', 0, 0)
1508
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1509
-  (0.1ms) SAVEPOINT active_record_2
1510
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 38 LIMIT 1
1436
+ SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page23' LIMIT 1
1437
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page23' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1438
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page23' AND `spud_pages`.`site_id` = 0) LIMIT 1
1439
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page23', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'page23', 0, 0)
1440
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1441
+ SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`visibility` = 0 AND `spud_pages`.`published` = 1
1442
+  (0.2ms) ROLLBACK
1443
+  (0.1ms) ROLLBACK
1444
+  (0.0ms) BEGIN
1445
+  (0.0ms) BEGIN
1446
+  (0.0ms) SAVEPOINT active_record_2
1511
1447
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1512
- SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page29/page31' LIMIT 1
1513
- SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page31' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` = 38) LIMIT 1
1514
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page29/page31' AND `spud_pages`.`site_id` = 0) LIMIT 1
1515
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page31', NULL, NULL, NULL, 1, 0, 38, '2013-02-20 13:04:28', NULL, 'page29/page31', 0, 0)
1448
+ SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page24' LIMIT 1
1449
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page24' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1450
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page24' AND `spud_pages`.`site_id` = 0) LIMIT 1
1451
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page24', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'page24', 0, 0)
1516
1452
   (0.1ms) RELEASE SAVEPOINT active_record_2
1517
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`visibility` = 0 AND `spud_pages`.`published` = 1
1518
-  (0.3ms) ROLLBACK
1519
-  (0.1ms) ROLLBACK
1453
+  (0.1ms) SAVEPOINT active_record_2
1454
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1455
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page25' LIMIT 1
1456
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page25' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1457
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page25' AND `spud_pages`.`site_id` = 0) LIMIT 1
1458
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page25', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'page25', 0, 0)
1459
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1460
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`visibility` = 0 AND `spud_pages`.`published` = 1 AND (name NOT IN ('Page25'))
1461
+  (0.2ms) ROLLBACK
1462
+  (0.0ms) ROLLBACK
1463
+  (0.1ms) BEGIN
1520
1464
   (0.1ms) BEGIN
1521
-  (0.2ms) BEGIN
1522
-  (0.1ms) SAVEPOINT active_record_2
1465
+  (0.0ms) SAVEPOINT active_record_2
1466
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1467
+ SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page26' LIMIT 1
1468
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page26' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1469
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page26' AND `spud_pages`.`site_id` = 0) LIMIT 1
1470
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page26', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'page26', 0, 0)
1471
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1472
+  (0.0ms) SAVEPOINT active_record_2
1473
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1474
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page27' LIMIT 1
1475
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page27' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1476
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page27' AND `spud_pages`.`site_id` = 0) LIMIT 1
1477
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page27', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'page27', 0, 0)
1478
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1479
+  (0.0ms) SAVEPOINT active_record_2
1480
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 35 LIMIT 1
1523
1481
  SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1524
- SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page32' LIMIT 1
1525
- SpudPage Exists (0.3ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page32' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1526
- SpudPage Exists (0.3ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page32' AND `spud_pages`.`site_id` = 0) LIMIT 1
1527
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page32', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'page32', 0, 0)
1482
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page26/page28' LIMIT 1
1483
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page28' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` = 35) LIMIT 1
1484
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page26/page28' AND `spud_pages`.`site_id` = 0) LIMIT 1
1485
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page28', NULL, NULL, NULL, 1, 0, 35, '2013-03-09 02:53:28', NULL, 'page26/page28', 0, 0)
1528
1486
   (0.1ms) RELEASE SAVEPOINT active_record_2
1529
-  (0.1ms) SAVEPOINT active_record_2
1530
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 1
1531
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 1 AND `spud_permalinks`.`url_name` = 'page33' LIMIT 1
1532
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page33' AND `spud_pages`.`site_id` = 1 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1533
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page33' AND `spud_pages`.`site_id` = 1) LIMIT 1
1534
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page33', NULL, NULL, NULL, 1, 1, NULL, '2013-02-20 13:04:28', NULL, 'page33', 0, 0)
1487
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`visibility` = 0 AND `spud_pages`.`published` = 1
1488
+  (0.2ms) ROLLBACK
1489
+  (0.0ms) ROLLBACK
1490
+  (0.0ms) BEGIN
1491
+  (0.0ms) BEGIN
1492
+  (0.0ms) SAVEPOINT active_record_2
1493
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1494
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page29' LIMIT 1
1495
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page29' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1496
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page29' AND `spud_pages`.`site_id` = 0) LIMIT 1
1497
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page29', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'page29', 0, 0)
1498
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1499
+  (0.0ms) SAVEPOINT active_record_2
1500
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1501
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page30' LIMIT 1
1502
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page30' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1503
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page30' AND `spud_pages`.`site_id` = 0) LIMIT 1
1504
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page30', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'page30', 0, 0)
1505
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1506
+  (0.0ms) SAVEPOINT active_record_2
1507
+ SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 38 LIMIT 1
1508
+ SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1509
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page29/page31' LIMIT 1
1510
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page31' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` = 38) LIMIT 1
1511
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page29/page31' AND `spud_pages`.`site_id` = 0) LIMIT 1
1512
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page31', NULL, NULL, NULL, 1, 0, 38, '2013-03-09 02:53:28', NULL, 'page29/page31', 0, 0)
1535
1513
   (0.1ms) RELEASE SAVEPOINT active_record_2
1536
- SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`visibility` = 0 AND `spud_pages`.`published` = 1 AND `spud_pages`.`site_id` = 1
1537
-  (0.4ms) ROLLBACK
1514
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`visibility` = 0 AND `spud_pages`.`published` = 1
1515
+  (0.3ms) ROLLBACK
1538
1516
   (0.0ms) ROLLBACK
1539
1517
   (0.0ms) BEGIN
1540
1518
   (0.0ms) BEGIN
1541
-  (0.0ms) ROLLBACK
1542
-  (0.0ms) ROLLBACK
1543
-  (0.0ms) BEGIN
1519
+  (0.0ms) SAVEPOINT active_record_2
1520
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1521
+ SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page32' LIMIT 1
1522
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page32' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1523
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page32' AND `spud_pages`.`site_id` = 0) LIMIT 1
1524
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page32', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'page32', 0, 0)
1525
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1526
+  (0.1ms) SAVEPOINT active_record_2
1527
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 1
1528
+ SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 1 AND `spud_permalinks`.`url_name` = 'page33' LIMIT 1
1529
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page33' AND `spud_pages`.`site_id` = 1 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1530
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page33' AND `spud_pages`.`site_id` = 1) LIMIT 1
1531
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page33', NULL, NULL, NULL, 1, 1, NULL, '2013-03-09 02:53:28', NULL, 'page33', 0, 0)
1532
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1533
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`visibility` = 0 AND `spud_pages`.`published` = 1 AND `spud_pages`.`site_id` = 1
1534
+  (0.3ms) ROLLBACK
1535
+  (0.1ms) ROLLBACK
1544
1536
   (0.0ms) BEGIN
1545
-  (0.0ms) ROLLBACK
1537
+  (0.0ms) BEGIN
1546
1538
   (0.0ms) ROLLBACK
1547
-  (0.1ms) BEGIN
1548
-  (0.0ms) BEGIN
1549
1539
   (0.0ms) ROLLBACK
1550
-  (0.0ms) ROLLBACK
1551
-  (0.0ms) BEGIN
1552
1540
   (0.0ms) BEGIN
1553
-  (0.0ms) ROLLBACK
1541
+  (0.0ms) BEGIN
1554
1542
   (0.0ms) ROLLBACK
1543
+  (0.1ms) ROLLBACK
1544
+  (0.0ms) BEGIN
1555
1545
   (0.0ms) BEGIN
1546
+  (0.0ms) ROLLBACK
1547
+  (0.0ms) ROLLBACK
1556
1548
   (0.0ms) BEGIN
1549
+  (0.0ms) BEGIN
1550
+  (0.0ms) ROLLBACK
1557
1551
   (0.0ms) ROLLBACK
1558
-  (0.1ms) ROLLBACK
1552
+  (0.0ms) BEGIN
1559
1553
   (0.0ms) BEGIN
1554
+  (0.0ms) ROLLBACK
1555
+  (0.0ms) ROLLBACK
1560
1556
   (0.0ms) BEGIN
1561
-  (0.1ms) ROLLBACK
1557
+  (0.0ms) BEGIN
1562
1558
   (0.1ms) ROLLBACK
1559
+  (0.0ms) ROLLBACK
1560
+  (0.1ms) BEGIN
1563
1561
   (0.0ms) BEGIN
1562
+  (0.1ms) ROLLBACK
1563
+  (0.0ms) ROLLBACK
1564
1564
   (0.0ms) BEGIN
1565
-  (0.1ms) ROLLBACK
1565
+  (0.1ms) BEGIN
1566
1566
   (0.1ms) ROLLBACK
1567
-  (0.0ms) BEGIN
1567
+  (0.0ms) ROLLBACK
1568
1568
   (0.0ms) BEGIN
1569
-  (0.1ms) ROLLBACK
1569
+  (0.1ms) BEGIN
1570
1570
   (0.1ms) ROLLBACK
1571
+  (0.0ms) ROLLBACK
1572
+  (0.1ms) BEGIN
1571
1573
   (0.0ms) BEGIN
1572
-  (0.0ms) BEGIN
1573
-  (0.1ms) ROLLBACK
1574
1574
   (0.0ms) ROLLBACK
1575
-  (0.0ms) BEGIN
1576
-  (0.0ms) BEGIN
1577
1575
   (0.0ms) ROLLBACK
1576
+  (0.0ms) BEGIN
1577
+  (0.0ms) BEGIN
1578
+  (0.0ms) SAVEPOINT active_record_2
1579
+ SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `content_processed`, `created_at`, `format`, `name`, `spud_page_id`, `symbol_name`, `updated_at`) VALUES (NULL, '', '2013-03-09 02:53:28', NULL, 'Test Page', NULL, 'test_page', '2013-03-09 02:53:28')
1580
+ SpudPageLiquidTag Load (0.2ms) SELECT `spud_page_liquid_tags`.* FROM `spud_page_liquid_tags` WHERE `spud_page_liquid_tags`.`attachment_id` = 1 AND `spud_page_liquid_tags`.`attachment_type` = 'SpudPagePartial'
1581
+ SQL (0.1ms) UPDATE `spud_page_partials` SET `content_processed` = '' WHERE `spud_page_partials`.`id` = 1
1582
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1583
+  (0.2ms) ROLLBACK
1578
1584
   (0.0ms) ROLLBACK
1579
1585
   (0.0ms) BEGIN
1580
1586
   (0.0ms) BEGIN
1581
1587
   (0.0ms) SAVEPOINT active_record_2
1582
- SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `content_processed`, `created_at`, `format`, `name`, `spud_page_id`, `symbol_name`, `updated_at`) VALUES (NULL, '', '2013-02-20 13:04:28', NULL, 'Test Page', NULL, 'test_page', '2013-02-20 13:04:28')
1583
- SpudPageLiquidTag Load (0.2ms) SELECT `spud_page_liquid_tags`.* FROM `spud_page_liquid_tags` WHERE `spud_page_liquid_tags`.`attachment_id` = 1 AND `spud_page_liquid_tags`.`attachment_type` = 'SpudPagePartial'
1584
- SQL (0.2ms) UPDATE `spud_page_partials` SET `content_processed` = '' WHERE `spud_page_partials`.`id` = 1
1588
+ SQL (0.3ms) INSERT INTO `spud_page_partial_revisions` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES ('Home Sweet Home', '2013-03-09 02:53:28', NULL, 'Test Page', 1, '2013-03-09 02:53:28')
1589
+  (0.3ms) SELECT COUNT(*) FROM `spud_page_partial_revisions` WHERE `spud_page_partial_revisions`.`spud_page_id` = 1 AND `spud_page_partial_revisions`.`name` = 'Test Page'
1590
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1
1591
+ SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `content_processed`, `created_at`, `format`, `name`, `spud_page_id`, `symbol_name`, `updated_at`) VALUES ('Home Sweet Home', 'Home Sweet Home', '2013-03-09 02:53:28', NULL, 'Test Page', 1, 'test_page', '2013-03-09 02:53:28')
1592
+ SpudPageLiquidTag Load (0.2ms) SELECT `spud_page_liquid_tags`.* FROM `spud_page_liquid_tags` WHERE `spud_page_liquid_tags`.`attachment_id` = 2 AND `spud_page_liquid_tags`.`attachment_type` = 'SpudPagePartial'
1585
1593
   (0.1ms) RELEASE SAVEPOINT active_record_2
1586
-  (0.2ms) ROLLBACK
1587
-  (0.0ms) ROLLBACK
1588
-  (0.0ms) BEGIN
1594
+  (0.2ms) SELECT COUNT(*) FROM `spud_page_partial_revisions` WHERE `spud_page_partial_revisions`.`spud_page_id` = 1 AND `spud_page_partial_revisions`.`name` = 'Test Page'
1595
+  (0.3ms) ROLLBACK
1596
+  (0.0ms) ROLLBACK
1589
1597
   (0.0ms) BEGIN
1590
-  (0.0ms) SAVEPOINT active_record_2
1591
- SQL (0.2ms) INSERT INTO `spud_page_partial_revisions` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES ('Home Sweet Home', '2013-02-20 13:04:28', NULL, 'Test Page', 1, '2013-02-20 13:04:28')
1592
-  (0.3ms) SELECT COUNT(*) FROM `spud_page_partial_revisions` WHERE `spud_page_partial_revisions`.`spud_page_id` = 1 AND `spud_page_partial_revisions`.`name` = 'Test Page'
1593
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1
1594
- SQL (0.1ms) INSERT INTO `spud_page_partials` (`content`, `content_processed`, `created_at`, `format`, `name`, `spud_page_id`, `symbol_name`, `updated_at`) VALUES ('Home Sweet Home', 'Home Sweet Home', '2013-02-20 13:04:28', NULL, 'Test Page', 1, 'test_page', '2013-02-20 13:04:28')
1595
- SpudPageLiquidTag Load (0.3ms) SELECT `spud_page_liquid_tags`.* FROM `spud_page_liquid_tags` WHERE `spud_page_liquid_tags`.`attachment_id` = 2 AND `spud_page_liquid_tags`.`attachment_type` = 'SpudPagePartial'
1596
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1597
-  (0.3ms) SELECT COUNT(*) FROM `spud_page_partial_revisions` WHERE `spud_page_partial_revisions`.`spud_page_id` = 1 AND `spud_page_partial_revisions`.`name` = 'Test Page'
1598
-  (0.8ms) ROLLBACK
1599
-  (0.1ms) ROLLBACK
1600
1598
   (0.0ms) BEGIN
1601
-  (0.0ms) BEGIN
1599
+  (0.0ms) SAVEPOINT active_record_2
1600
+ SQL (0.2ms) INSERT INTO `spud_page_partial_revisions` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES ('Home Sweet Home', '2013-03-09 02:53:28', NULL, 'Test Page', 1, '2013-03-09 02:53:28')
1601
+  (0.1ms) SELECT COUNT(*) FROM `spud_page_partial_revisions` WHERE `spud_page_partial_revisions`.`spud_page_id` = 1 AND `spud_page_partial_revisions`.`name` = 'Test Page'
1602
+ SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1
1603
+ SQL (0.1ms) INSERT INTO `spud_page_partials` (`content`, `content_processed`, `created_at`, `format`, `name`, `spud_page_id`, `symbol_name`, `updated_at`) VALUES ('Home Sweet Home', 'Home Sweet Home', '2013-03-09 02:53:28', NULL, 'Test Page', 1, 'test_page', '2013-03-09 02:53:28')
1604
+ SpudPageLiquidTag Load (0.1ms) SELECT `spud_page_liquid_tags`.* FROM `spud_page_liquid_tags` WHERE `spud_page_liquid_tags`.`attachment_id` = 3 AND `spud_page_liquid_tags`.`attachment_type` = 'SpudPagePartial'
1605
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1606
+  (0.1ms) SAVEPOINT active_record_2
1607
+ SQL (0.1ms) INSERT INTO `spud_page_partial_revisions` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES ('Nah', '2013-03-09 02:53:28', NULL, 'Test Page', 1, '2013-03-09 02:53:28')
1608
+  (0.1ms) SELECT COUNT(*) FROM `spud_page_partial_revisions` WHERE `spud_page_partial_revisions`.`spud_page_id` = 1 AND `spud_page_partial_revisions`.`name` = 'Test Page'
1609
+  (0.2ms) UPDATE `spud_page_partials` SET `content` = 'Nah', `content_processed` = 'Nah', `updated_at` = '2013-03-09 02:53:28' WHERE `spud_page_partials`.`id` = 3
1610
+ SpudPageLiquidTag Load (0.1ms) SELECT `spud_page_liquid_tags`.* FROM `spud_page_liquid_tags` WHERE `spud_page_liquid_tags`.`attachment_id` = 3 AND `spud_page_liquid_tags`.`attachment_type` = 'SpudPagePartial'
1611
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1602
1612
   (0.0ms) SAVEPOINT active_record_2
1603
- SQL (0.3ms) INSERT INTO `spud_page_partial_revisions` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES ('Home Sweet Home', '2013-02-20 13:04:28', NULL, 'Test Page', 1, '2013-02-20 13:04:28')
1604
-  (0.3ms) SELECT COUNT(*) FROM `spud_page_partial_revisions` WHERE `spud_page_partial_revisions`.`spud_page_id` = 1 AND `spud_page_partial_revisions`.`name` = 'Test Page'
1605
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1
1606
- SQL (0.1ms) INSERT INTO `spud_page_partials` (`content`, `content_processed`, `created_at`, `format`, `name`, `spud_page_id`, `symbol_name`, `updated_at`) VALUES ('Home Sweet Home', 'Home Sweet Home', '2013-02-20 13:04:28', NULL, 'Test Page', 1, 'test_page', '2013-02-20 13:04:28')
1607
- SpudPageLiquidTag Load (0.2ms) SELECT `spud_page_liquid_tags`.* FROM `spud_page_liquid_tags` WHERE `spud_page_liquid_tags`.`attachment_id` = 3 AND `spud_page_liquid_tags`.`attachment_type` = 'SpudPagePartial'
1608
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1609
-  (0.1ms) SAVEPOINT active_record_2
1610
- SQL (0.2ms) INSERT INTO `spud_page_partial_revisions` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES ('Nah', '2013-02-20 13:04:28', NULL, 'Test Page', 1, '2013-02-20 13:04:28')
1611
-  (0.3ms) SELECT COUNT(*) FROM `spud_page_partial_revisions` WHERE `spud_page_partial_revisions`.`spud_page_id` = 1 AND `spud_page_partial_revisions`.`name` = 'Test Page'
1612
-  (0.3ms) UPDATE `spud_page_partials` SET `content` = 'Nah', `content_processed` = 'Nah', `updated_at` = '2013-02-20 13:04:28' WHERE `spud_page_partials`.`id` = 3
1613
- SpudPageLiquidTag Load (0.3ms) SELECT `spud_page_liquid_tags`.* FROM `spud_page_liquid_tags` WHERE `spud_page_liquid_tags`.`attachment_id` = 3 AND `spud_page_liquid_tags`.`attachment_type` = 'SpudPagePartial'
1614
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1615
-  (0.1ms) SAVEPOINT active_record_2
1616
- SQL (0.2ms) INSERT INTO `spud_page_partial_revisions` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES ('Another change', '2013-02-20 13:04:28', NULL, 'Test Page', 1, '2013-02-20 13:04:28')
1617
-  (0.2ms) SELECT COUNT(*) FROM `spud_page_partial_revisions` WHERE `spud_page_partial_revisions`.`spud_page_id` = 1 AND `spud_page_partial_revisions`.`name` = 'Test Page'
1618
- SpudPagePartialRevision Load (0.2ms) SELECT `spud_page_partial_revisions`.* FROM `spud_page_partial_revisions` WHERE `spud_page_partial_revisions`.`spud_page_id` = 1 AND `spud_page_partial_revisions`.`name` = 'Test Page' ORDER BY created_at ASC LIMIT 1
1619
- SQL (0.2ms) DELETE FROM `spud_page_partial_revisions` WHERE `spud_page_partial_revisions`.`id` = 2
1620
-  (0.2ms) UPDATE `spud_page_partials` SET `content` = 'Another change', `content_processed` = 'Another change', `updated_at` = '2013-02-20 13:04:28' WHERE `spud_page_partials`.`id` = 3
1621
- SpudPageLiquidTag Load (0.2ms) SELECT `spud_page_liquid_tags`.* FROM `spud_page_liquid_tags` WHERE `spud_page_liquid_tags`.`attachment_id` = 3 AND `spud_page_liquid_tags`.`attachment_type` = 'SpudPagePartial'
1622
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1623
-  (0.2ms) SELECT COUNT(*) FROM `spud_page_partial_revisions` WHERE `spud_page_partial_revisions`.`spud_page_id` = 1 AND `spud_page_partial_revisions`.`name` = 'Test Page'
1624
-  (0.4ms) ROLLBACK
1625
-  (0.0ms) ROLLBACK
1626
-  (0.0ms) BEGIN
1627
-  (0.0ms) BEGIN
1613
+ SQL (0.2ms) INSERT INTO `spud_page_partial_revisions` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES ('Another change', '2013-03-09 02:53:28', NULL, 'Test Page', 1, '2013-03-09 02:53:28')
1614
+  (0.2ms) SELECT COUNT(*) FROM `spud_page_partial_revisions` WHERE `spud_page_partial_revisions`.`spud_page_id` = 1 AND `spud_page_partial_revisions`.`name` = 'Test Page'
1615
+ SpudPagePartialRevision Load (0.2ms) SELECT `spud_page_partial_revisions`.* FROM `spud_page_partial_revisions` WHERE `spud_page_partial_revisions`.`spud_page_id` = 1 AND `spud_page_partial_revisions`.`name` = 'Test Page' ORDER BY created_at ASC LIMIT 1
1616
+ SQL (0.1ms) DELETE FROM `spud_page_partial_revisions` WHERE `spud_page_partial_revisions`.`id` = 2
1617
+  (0.2ms) UPDATE `spud_page_partials` SET `content` = 'Another change', `content_processed` = 'Another change', `updated_at` = '2013-03-09 02:53:28' WHERE `spud_page_partials`.`id` = 3
1618
+ SpudPageLiquidTag Load (0.2ms) SELECT `spud_page_liquid_tags`.* FROM `spud_page_liquid_tags` WHERE `spud_page_liquid_tags`.`attachment_id` = 3 AND `spud_page_liquid_tags`.`attachment_type` = 'SpudPagePartial'
1619
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1620
+  (0.2ms) SELECT COUNT(*) FROM `spud_page_partial_revisions` WHERE `spud_page_partial_revisions`.`spud_page_id` = 1 AND `spud_page_partial_revisions`.`name` = 'Test Page'
1621
+  (0.3ms) ROLLBACK
1628
1622
   (0.0ms) ROLLBACK
1629
-  (0.0ms) ROLLBACK
1630
-  (0.1ms) BEGIN
1631
-  (0.1ms) BEGIN
1632
-  (0.1ms) ROLLBACK
1633
-  (0.0ms) ROLLBACK
1634
-  (0.0ms) BEGIN
1635
1623
   (0.0ms) BEGIN
1636
-  (0.0ms) ROLLBACK
1637
-  (0.0ms) ROLLBACK
1638
1624
   (0.0ms) BEGIN
1625
+  (0.0ms) ROLLBACK
1626
+  (0.0ms) ROLLBACK
1639
1627
   (0.0ms) BEGIN
1628
+  (0.1ms) BEGIN
1629
+  (0.1ms) ROLLBACK
1640
1630
   (0.0ms) ROLLBACK
1631
+  (0.0ms) BEGIN
1632
+  (0.0ms) BEGIN
1641
1633
   (0.0ms) ROLLBACK
1634
+  (0.0ms) ROLLBACK
1635
+  (0.0ms) BEGIN
1642
1636
   (0.0ms) BEGIN
1637
+  (0.0ms) ROLLBACK
1638
+  (0.0ms) ROLLBACK
1643
1639
   (0.0ms) BEGIN
1640
+  (0.1ms) BEGIN
1641
+  (0.1ms) ROLLBACK
1644
1642
   (0.0ms) ROLLBACK
1645
-  (0.0ms) ROLLBACK
1643
+  (0.0ms) BEGIN
1646
1644
   (0.0ms) BEGIN
1645
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` IS NULL AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1646
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` IS NULL AND `spud_pages`.`site_id` = 0) LIMIT 1
1647
+  (0.1ms) ROLLBACK
1648
+  (0.0ms) ROLLBACK
1647
1649
   (0.0ms) BEGIN
1648
- SpudPage Exists (0.3ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` IS NULL AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1649
- SpudPage Exists (0.3ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` IS NULL AND `spud_pages`.`site_id` = 0) LIMIT 1
1650
-  (0.1ms) ROLLBACK
1650
+  (0.0ms) BEGIN
1651
+  (0.0ms) SAVEPOINT active_record_2
1652
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page34' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1653
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` = 0) LIMIT 1
1654
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page34', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'test', 1, 0)
1655
+  (0.2ms) RELEASE SAVEPOINT active_record_2
1656
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page35' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1657
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` = 0) LIMIT 1
1658
+  (0.2ms) ROLLBACK
1651
1659
   (0.1ms) ROLLBACK
1652
1660
   (0.0ms) BEGIN
1653
1661
   (0.0ms) BEGIN
1654
1662
   (0.0ms) SAVEPOINT active_record_2
1655
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page34' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1656
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` = 0) LIMIT 1
1657
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page34', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'test', 1, 0)
1663
+ SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1664
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'test' LIMIT 1
1665
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1666
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` = 0) LIMIT 1
1667
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'test', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'test', 0, 0)
1658
1668
   (0.1ms) RELEASE SAVEPOINT active_record_2
1659
- SpudPage Exists (0.3ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page35' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1660
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` = 0) LIMIT 1
1661
-  (0.3ms) ROLLBACK
1662
-  (0.0ms) ROLLBACK
1669
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1670
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1
1671
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1672
+ SpudPage Exists (0.3ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` = 0) LIMIT 1
1673
+  (0.4ms) ROLLBACK
1674
+  (0.1ms) ROLLBACK
1663
1675
   (0.0ms) BEGIN
1664
1676
   (0.0ms) BEGIN
1665
1677
   (0.1ms) SAVEPOINT active_record_2
1666
1678
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1667
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'test' LIMIT 1
1668
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1669
- SpudPage Exists (0.3ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` = 0) LIMIT 1
1670
- SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'test', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'test', 0, 0)
1671
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1672
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1673
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1
1674
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1675
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` = 0) LIMIT 1
1676
-  (0.3ms) ROLLBACK
1677
-  (0.1ms) ROLLBACK
1678
-  (0.0ms) BEGIN
1679
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page36' LIMIT 1
1680
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page36' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1681
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page36' AND `spud_pages`.`site_id` = 0) LIMIT 1
1682
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page36', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'page36', 0, 0)
1683
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 45 LIMIT 1
1684
+ SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `content_processed`, `created_at`, `format`, `name`, `spud_page_id`, `symbol_name`, `updated_at`) VALUES (NULL, '', '2013-03-09 02:53:28', NULL, 'body', 45, 'body', '2013-03-09 02:53:28')
1685
+ SpudPageLiquidTag Load (0.2ms) SELECT `spud_page_liquid_tags`.* FROM `spud_page_liquid_tags` WHERE `spud_page_liquid_tags`.`attachment_id` = 4 AND `spud_page_liquid_tags`.`attachment_type` = 'SpudPagePartial'
1686
+ SQL (0.1ms) UPDATE `spud_page_partials` SET `content_processed` = '' WHERE `spud_page_partials`.`id` = 4
1687
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1688
+  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`
1689
+  (0.1ms) SAVEPOINT active_record_2
1690
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 45
1691
+ SpudPageLiquidTag Load (0.2ms) SELECT `spud_page_liquid_tags`.* FROM `spud_page_liquid_tags` WHERE `spud_page_liquid_tags`.`attachment_id` = 4 AND `spud_page_liquid_tags`.`attachment_type` = 'SpudPagePartial'
1692
+ SQL (0.1ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 4
1693
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 45 AND `spud_permalinks`.`attachment_type` = 'SpudPage'
1694
+ SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 45
1695
+  (0.0ms) RELEASE SAVEPOINT active_record_2
1696
+  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`
1697
+  (0.3ms) ROLLBACK
1698
+  (0.0ms) ROLLBACK
1679
1699
   (0.0ms) BEGIN
1680
-  (0.1ms) SAVEPOINT active_record_2
1681
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1682
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'page36' LIMIT 1
1683
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page36' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1684
- SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page36' AND `spud_pages`.`site_id` = 0) LIMIT 1
1685
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page36', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'page36', 0, 0)
1686
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 45 LIMIT 1
1687
- SQL (0.1ms) INSERT INTO `spud_page_partials` (`content`, `content_processed`, `created_at`, `format`, `name`, `spud_page_id`, `symbol_name`, `updated_at`) VALUES (NULL, '', '2013-02-20 13:04:28', NULL, 'body', 45, 'body', '2013-02-20 13:04:28')
1688
- SpudPageLiquidTag Load (0.2ms) SELECT `spud_page_liquid_tags`.* FROM `spud_page_liquid_tags` WHERE `spud_page_liquid_tags`.`attachment_id` = 4 AND `spud_page_liquid_tags`.`attachment_type` = 'SpudPagePartial'
1689
- SQL (0.2ms) UPDATE `spud_page_partials` SET `content_processed` = '' WHERE `spud_page_partials`.`id` = 4
1690
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1691
-  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials` 
1692
-  (0.1ms) SAVEPOINT active_record_2
1693
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 45
1694
- SpudPageLiquidTag Load (0.1ms) SELECT `spud_page_liquid_tags`.* FROM `spud_page_liquid_tags` WHERE `spud_page_liquid_tags`.`attachment_id` = 4 AND `spud_page_liquid_tags`.`attachment_type` = 'SpudPagePartial'
1695
- SQL (0.1ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 4
1696
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 45 AND `spud_permalinks`.`attachment_type` = 'SpudPage'
1697
- SQL (0.1ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 45
1698
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1699
-  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials` 
1700
-  (0.6ms) ROLLBACK
1701
-  (0.0ms) ROLLBACK
1702
1700
   (0.0ms) BEGIN
1703
-  (0.1ms) BEGIN
1704
-  (0.0ms) ROLLBACK
1705
1701
   (0.0ms) ROLLBACK
1706
-  (0.0ms) BEGIN
1707
-  (0.1ms) BEGIN
1708
1702
   (0.0ms) ROLLBACK
1703
+  (0.1ms) BEGIN
1704
+  (0.1ms) BEGIN
1709
1705
   (0.0ms) ROLLBACK
1710
-  (0.0ms) BEGIN
1711
-  (0.0ms) BEGIN
1712
1706
   (0.0ms) ROLLBACK
1707
+  (0.0ms) BEGIN
1708
+  (0.0ms) BEGIN
1713
1709
   (0.0ms) ROLLBACK
1714
-  (0.1ms) BEGIN
1715
-  (0.1ms) BEGIN
1716
-  (0.0ms) SAVEPOINT active_record_2
1717
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1718
- SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1
1719
- SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1720
- SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` = 0) LIMIT 1
1721
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'parent', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'parent', 0, 0)
1722
-  (0.0ms) RELEASE SAVEPOINT active_record_2
1710
+  (0.0ms) ROLLBACK
1711
+  (0.0ms) BEGIN
1712
+  (0.0ms) BEGIN
1723
1713
   (0.0ms) SAVEPOINT active_record_2
1724
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1725
- SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1
1726
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` = 46) LIMIT 1
1727
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` = 0) LIMIT 1
1728
- SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, 0, 46, '2013-02-20 13:04:28', NULL, 'parent/page-1', 0, 0)
1714
+ SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1715
+ SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1
1716
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1717
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` = 0) LIMIT 1
1718
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'parent', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'parent', 0, 0)
1729
1719
   (0.1ms) RELEASE SAVEPOINT active_record_2
1730
1720
   (0.1ms) SAVEPOINT active_record_2
1731
1721
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1732
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1
1733
- SpudPage Exists (0.3ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` = 46) LIMIT 1
1734
- SpudPage Exists (0.3ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` = 0) LIMIT 1
1735
- SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, 0, 46, '2013-02-20 13:04:28', NULL, 'parent/page-2', 0, 0)
1736
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1737
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1738
-  (0.4ms) ROLLBACK
1739
-  (0.1ms) ROLLBACK
1740
-  (0.0ms) BEGIN
1722
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1
1723
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` = 46) LIMIT 1
1724
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` = 0) LIMIT 1
1725
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, 0, 46, '2013-03-09 02:53:28', NULL, 'parent/page-1', 0, 0)
1726
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1727
+  (0.1ms) SAVEPOINT active_record_2
1728
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1729
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1
1730
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` = 46) LIMIT 1
1731
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` = 0) LIMIT 1
1732
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, 0, 46, '2013-03-09 02:53:28', NULL, 'parent/page-2', 0, 0)
1733
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1734
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1735
+  (0.3ms) ROLLBACK
1736
+  (0.0ms) ROLLBACK
1741
1737
   (0.0ms) BEGIN
1738
+  (0.1ms) BEGIN
1739
+  (0.1ms) ROLLBACK
1742
1740
   (0.0ms) ROLLBACK
1741
+  (0.1ms) BEGIN
1742
+  (0.0ms) BEGIN
1743
+  (0.0ms) SAVEPOINT active_record_2
1744
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1745
+ SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'about' LIMIT 1
1746
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1747
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` = 0) LIMIT 1
1748
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'about', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'about', 0, 0)
1749
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1750
+ SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1751
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1
1752
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` = 49) LIMIT 1
1753
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` = 0) LIMIT 1
1754
+  (0.3ms) ROLLBACK
1743
1755
   (0.0ms) ROLLBACK
1744
1756
   (0.0ms) BEGIN
1745
1757
   (0.0ms) BEGIN
1746
1758
   (0.0ms) SAVEPOINT active_record_2
1747
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1748
- SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'about' LIMIT 1
1749
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1750
- SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` = 0) LIMIT 1
1751
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'about', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'about', 0, 0)
1759
+ SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1760
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1
1761
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1762
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` = 0) LIMIT 1
1763
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'testimonials', 0, 0)
1752
1764
   (0.1ms) RELEASE SAVEPOINT active_record_2
1753
1765
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1754
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1
1755
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` = 49) LIMIT 1
1756
- SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` = 0) LIMIT 1
1766
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1
1767
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1768
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` = 0) LIMIT 1
1757
1769
   (0.2ms) ROLLBACK
1758
1770
   (0.0ms) ROLLBACK
1759
1771
   (0.0ms) BEGIN
1760
-  (0.1ms) BEGIN
1761
-  (0.1ms) SAVEPOINT active_record_2
1762
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1763
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1
1764
- SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1765
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` = 0) LIMIT 1
1766
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'testimonials', 0, 0)
1767
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1768
- SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1769
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1
1770
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1771
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` = 0) LIMIT 1
1772
-  (0.3ms) ROLLBACK
1773
-  (0.0ms) ROLLBACK
1774
1772
   (0.0ms) BEGIN
1775
-  (0.0ms) BEGIN
1773
+  (0.0ms) SAVEPOINT active_record_2
1774
+ SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1775
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'another' LIMIT 1
1776
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1777
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` = 0) LIMIT 1
1778
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'another', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'another', 0, 0)
1779
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1776
1780
   (0.1ms) SAVEPOINT active_record_2
1777
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1778
- SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'another' LIMIT 1
1781
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0 AND (id != 51)
1782
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'again' LIMIT 1
1783
+ SpudPermalink Exists (0.2ms) SELECT 1 AS one FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` = 0) LIMIT 1
1784
+ SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (51, 'SpudPage', '2013-03-09 02:53:28', 0, '2013-03-09 02:53:28', 'another')
1785
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 51 AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1786
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 51 AND `spud_pages`.`site_id` = 0) LIMIT 1
1787
+  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2013-03-09 02:53:28' WHERE `spud_pages`.`id` = 51
1788
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1789
+ SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1790
+ SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'another' LIMIT 1
1791
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 51 LIMIT 1
1792
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1
1779
1793
  SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1780
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` = 0) LIMIT 1
1781
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'another', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'another', 0, 0)
1794
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` = 0) LIMIT 1
1795
+  (1.6ms) ROLLBACK
1796
+  (0.0ms) ROLLBACK
1797
+  (0.1ms) BEGIN
1798
+  (0.0ms) BEGIN
1799
+  (0.0ms) SAVEPOINT active_record_2
1800
+ SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1801
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1
1802
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1803
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` = 0) LIMIT 1
1804
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'permapage', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'permapage', 0, 0)
1805
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1806
+  (0.1ms) SAVEPOINT active_record_2
1807
+ SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0 AND (id != 52)
1808
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1
1809
+ SpudPermalink Exists (0.2ms) SELECT 1 AS one FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` = 0) LIMIT 1
1810
+ SQL (0.1ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (52, 'SpudPage', '2013-03-09 02:53:28', 0, '2013-03-09 02:53:28', 'permapage')
1811
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 52 AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1812
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 52 AND `spud_pages`.`site_id` = 0) LIMIT 1
1813
+  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2013-03-09 02:53:28' WHERE `spud_pages`.`id` = 52
1814
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1815
+  (0.3ms) SELECT COUNT(*) FROM `spud_permalinks` 
1816
+  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 52 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'
1817
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0 AND (id != 52)
1818
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1
1819
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 52 LIMIT 1
1820
+  (0.1ms) SAVEPOINT active_record_2
1821
+ SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 5
1782
1822
   (0.0ms) RELEASE SAVEPOINT active_record_2
1783
1823
   (0.0ms) SAVEPOINT active_record_2
1784
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0 AND (id != 51)
1785
- SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'again' LIMIT 1
1786
- SpudPermalink Exists (0.2ms) SELECT 1 AS one FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` = 0) LIMIT 1
1787
- SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (51, 'SpudPage', '2013-02-20 13:04:28', 0, '2013-02-20 13:04:28', 'another')
1788
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 51 AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1789
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 51 AND `spud_pages`.`site_id` = 0) LIMIT 1
1790
-  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2013-02-20 13:04:28' WHERE `spud_pages`.`id` = 51
1791
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1792
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1793
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'another' LIMIT 1
1794
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 51 LIMIT 1
1795
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1
1796
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1797
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` = 0) LIMIT 1
1798
-  (0.3ms) ROLLBACK
1824
+ SpudPermalink Exists (0.2ms) SELECT 1 AS one FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` = 0) LIMIT 1
1825
+ SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (52, 'SpudPage', '2013-03-09 02:53:28', 0, '2013-03-09 02:53:28', 'permapage-new')
1826
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1827
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 52 AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1828
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 52 AND `spud_pages`.`site_id` = 0) LIMIT 1
1829
+  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 52 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'
1830
+  (0.4ms) ROLLBACK
1799
1831
   (0.0ms) ROLLBACK
1800
1832
   (0.0ms) BEGIN
1801
1833
   (0.0ms) BEGIN
1802
1834
   (0.0ms) SAVEPOINT active_record_2
1803
1835
  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1804
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1
1805
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1806
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` = 0) LIMIT 1
1807
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'permapage', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'permapage', 0, 0)
1836
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'original' LIMIT 1
1837
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1838
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` = 0) LIMIT 1
1839
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'original', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'original', 0, 0)
1808
1840
   (0.1ms) RELEASE SAVEPOINT active_record_2
1809
-  (0.0ms) SAVEPOINT active_record_2
1810
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0 AND (id != 52)
1811
- SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1
1812
- SpudPermalink Exists (0.2ms) SELECT 1 AS one FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` = 0) LIMIT 1
1813
- SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (52, 'SpudPage', '2013-02-20 13:04:28', 0, '2013-02-20 13:04:28', 'permapage')
1814
- SpudPage Exists (0.3ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 52 AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1815
- SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 52 AND `spud_pages`.`site_id` = 0) LIMIT 1
1816
-  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2013-02-20 13:04:28' WHERE `spud_pages`.`id` = 52
1817
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1818
-  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`
1819
-  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 52 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'
1820
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0 AND (id != 52)
1821
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1
1822
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 52 LIMIT 1
1823
-  (0.1ms) SAVEPOINT active_record_2
1824
- SQL (0.2ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 5
1825
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1826
-  (0.0ms) SAVEPOINT active_record_2
1827
- SpudPermalink Exists (0.2ms) SELECT 1 AS one FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` = 0) LIMIT 1
1828
- SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (52, 'SpudPage', '2013-02-20 13:04:28', 0, '2013-02-20 13:04:28', 'permapage-new')
1829
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1830
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 52 AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1831
- SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 52 AND `spud_pages`.`site_id` = 0) LIMIT 1
1832
-  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 52 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'
1833
-  (0.7ms) ROLLBACK
1841
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1842
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` = 0) LIMIT 1
1843
+  (0.5ms) ROLLBACK
1834
1844
   (0.0ms) ROLLBACK
1835
1845
   (0.0ms) BEGIN
1836
1846
   (0.0ms) BEGIN
@@ -1838,40 +1848,27 @@ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.4ms)
1838
1848
  SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1839
1849
  SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'original' LIMIT 1
1840
1850
  SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1841
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` = 0) LIMIT 1
1842
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'original', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'original', 0, 0)
1851
+ SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` = 0) LIMIT 1
1852
+ SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'original', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'original', 0, 0)
1843
1853
   (0.1ms) RELEASE SAVEPOINT active_record_2
1844
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1845
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` = 0) LIMIT 1
1846
-  (0.3ms) ROLLBACK
1847
-  (0.0ms) ROLLBACK
1848
-  (0.0ms) BEGIN
1849
-  (0.0ms) BEGIN
1850
-  (0.0ms) SAVEPOINT active_record_2
1851
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1852
- SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'original' LIMIT 1
1853
- SpudPage Exists (0.3ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1854
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` = 0) LIMIT 1
1855
- SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'original', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'original', 0, 0)
1854
+  (0.1ms) SAVEPOINT active_record_2
1855
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0 AND (id != 54)
1856
+ SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1
1857
+ SpudPermalink Exists (0.3ms) SELECT 1 AS one FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` = 0) LIMIT 1
1858
+ SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (54, 'SpudPage', '2013-03-09 02:53:28', 0, '2013-03-09 02:53:28', 'original')
1859
+ SpudPage Exists (0.3ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 54 AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1860
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 54 AND `spud_pages`.`site_id` = 0) LIMIT 1
1861
+  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2013-03-09 02:53:28' WHERE `spud_pages`.`id` = 54
1856
1862
   (0.0ms) RELEASE SAVEPOINT active_record_2
1857
1863
   (0.0ms) SAVEPOINT active_record_2
1858
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0 AND (id != 54)
1859
- SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1
1860
- SpudPermalink Exists (0.2ms) SELECT 1 AS one FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` = 0) LIMIT 1
1861
- SQL (0.1ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (54, 'SpudPage', '2013-02-20 13:04:28', 0, '2013-02-20 13:04:28', 'original')
1862
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 54 AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1863
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 54 AND `spud_pages`.`site_id` = 0) LIMIT 1
1864
-  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2013-02-20 13:04:28' WHERE `spud_pages`.`id` = 54
1864
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1865
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'new' LIMIT 1
1866
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1867
+ SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` = 0) LIMIT 1
1868
+ SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-03-09 02:53:28', NULL, 'html', NULL, NULL, NULL, 'new', NULL, NULL, NULL, 1, 0, NULL, '2013-03-09 02:53:28', NULL, 'new', 0, 0)
1865
1869
   (0.1ms) RELEASE SAVEPOINT active_record_2
1866
-  (0.0ms) SAVEPOINT active_record_2
1867
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` = 0
1868
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'new' LIMIT 1
1869
- SpudPage Exists (0.2ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` = 0 AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1
1870
- SpudPage Exists (0.1ms) SELECT 1 AS one FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` = 0) LIMIT 1
1871
- SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `layout`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2013-02-20 13:04:28', NULL, 'html', NULL, NULL, NULL, 'new', NULL, NULL, NULL, 1, 0, NULL, '2013-02-20 13:04:28', NULL, 'new', 0, 0)
1872
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1873
- SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 55 LIMIT 1
1874
- SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'original' LIMIT 1
1875
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 54 LIMIT 1
1876
-  (0.3ms) ROLLBACK
1877
-  (0.1ms) ROLLBACK
1870
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 55 LIMIT 1
1871
+ SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` = 0 AND `spud_permalinks`.`url_name` = 'original' LIMIT 1
1872
+ SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 54 LIMIT 1
1873
+  (0.3ms) ROLLBACK
1874
+  (0.0ms) ROLLBACK