pulitzer 0.13.1 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/pulitzer.scss +28 -2
- data/app/controllers/pulitzer/content_elements_controller.rb +6 -2
- data/app/controllers/pulitzer/custom_option_lists_controller.rb +55 -0
- data/app/controllers/pulitzer/custom_options_controller.rb +55 -0
- data/app/controllers/pulitzer/partial_types_controller.rb +0 -11
- data/app/controllers/pulitzer/posts_controller.rb +5 -6
- data/app/controllers/pulitzer/styles_controller.rb +42 -0
- data/app/helpers/pulitzer/posts_helper.rb +15 -4
- data/app/interactions/pulitzer/content_elements_controller/update.rb +21 -0
- data/app/models/pulitzer/content_element.rb +63 -8
- data/app/models/pulitzer/content_element_type.rb +6 -1
- data/app/models/pulitzer/custom_option.rb +6 -0
- data/app/models/pulitzer/custom_option_list.rb +10 -0
- data/app/models/pulitzer/post_type_content_element_type.rb +58 -2
- data/app/models/pulitzer/style.rb +11 -0
- data/app/views/pulitzer/content_elements/_clickable_fields.html.erb +31 -0
- data/app/views/pulitzer/content_elements/_form.html.erb +1 -3
- data/app/views/pulitzer/content_elements/_partial_index.html.erb +1 -1
- data/app/views/pulitzer/content_elements/_show.html.erb +11 -20
- data/app/views/pulitzer/custom_option_lists/_edit.html.erb +10 -0
- data/app/views/pulitzer/custom_option_lists/_index.html.erb +12 -0
- data/app/views/pulitzer/custom_option_lists/_new.html.erb +9 -0
- data/app/views/pulitzer/custom_option_lists/_show.html.erb +11 -0
- data/app/views/pulitzer/custom_option_lists/_show_wrapper.html.erb +3 -0
- data/app/views/pulitzer/custom_options/_edit.html.erb +10 -0
- data/app/views/pulitzer/custom_options/_fields.html.erb +2 -0
- data/app/views/pulitzer/custom_options/_index.html.erb +20 -0
- data/app/views/pulitzer/custom_options/_new.html.erb +10 -0
- data/app/views/pulitzer/custom_options/_show.html.erb +5 -0
- data/app/views/pulitzer/custom_options/_show_wrapper.html.erb +3 -0
- data/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb +1 -1
- data/app/views/pulitzer/partial_types/_index.html.erb +1 -1
- data/app/views/pulitzer/partials/_index.html.erb +4 -4
- data/app/views/pulitzer/partials/_new.html.erb +1 -1
- data/app/views/pulitzer/post_type_content_element_types/_form_fields.html.erb +4 -0
- data/app/views/pulitzer/post_type_content_element_types/_show.html.erb +13 -5
- data/app/views/pulitzer/post_types/_template.html.erb +5 -4
- data/app/views/pulitzer/post_types/index.html.erb +26 -12
- data/app/views/pulitzer/posts/{index.html.erb → _index.html.erb} +0 -0
- data/app/views/pulitzer/styles/_index.html.erb +10 -0
- data/app/views/pulitzer/styles/_new.html.erb +29 -0
- data/app/views/pulitzer/styles/_show.html.erb +15 -0
- data/app/views/pulitzer/styles/_show_wrapper.html.erb +3 -0
- data/config/routes.rb +4 -0
- data/lib/pulitzer/content_element_helper.rb +22 -4
- data/lib/pulitzer/version.rb +1 -1
- data/spec/controllers/pages_controller_spec.rb +16 -0
- data/spec/dummy/app/controllers/pages_controller.rb +7 -0
- data/spec/dummy/app/controllers/pulitzer_preview/pages_controller.rb +16 -0
- data/spec/dummy/app/views/pages/welcome.html.erb +27 -0
- data/spec/dummy/app/views/pulitzer/welcome.html.erb +27 -0
- data/spec/dummy/config/initializers/zz_pulitzer.rb +1 -0
- data/spec/dummy/config/routes.rb +2 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +198 -0
- data/spec/dummy/log/test.log +1733 -0
- metadata +34 -6
- data/app/interactions/pulitzer/update_free_form_section_partials.rb +0 -18
- data/app/models/pulitzer/layout.rb +0 -11
- data/app/views/pulitzer/partial_types/_form.html.erb +0 -21
@@ -1,20 +1,34 @@
|
|
1
1
|
<div <%= tab_set("tab", type: :ajax, default_tab: params[:tab] || 'templates') %>>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
<% if Pulitzer.skip_metadata_auth? || self.instance_eval(&Pulitzer.metadata_closure) %>
|
3
|
+
<div class="pulitzer-pill"
|
4
|
+
href="<%= tags_path %>"
|
5
|
+
<%= tab_trigger('tags')%>>
|
6
|
+
Tags
|
7
|
+
</div>
|
8
|
+
<% end %>
|
7
9
|
<div class="pulitzer-pill"
|
8
10
|
href="<%= post_types_path(post_type_kind: 'template') %>"
|
9
11
|
<%= tab_trigger('templates')%>>
|
10
12
|
Full Page Templates
|
11
13
|
</div>
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
<% if Pulitzer.skip_metadata_auth? || self.instance_eval(&Pulitzer.metadata_closure) %>
|
15
|
+
<div class="pulitzer-pill"
|
16
|
+
href="<%= post_types_path(post_type_kind: 'partial') %>"
|
17
|
+
<%= tab_trigger('partials')%>>
|
18
|
+
Partials
|
19
|
+
</div>
|
20
|
+
<div class="pulitzer-pill"
|
21
|
+
href="<%= custom_option_lists_path %>"
|
22
|
+
<%= tab_trigger('options')%>>
|
23
|
+
Clickable Options
|
24
|
+
</div>
|
25
|
+
<% end %>
|
17
26
|
</div>
|
18
|
-
|
27
|
+
<% if Pulitzer.skip_metadata_auth? || self.instance_eval(&Pulitzer.metadata_closure) %>
|
28
|
+
<div class="pulitzer-row" <%= tab_content('tags') %>></div>
|
29
|
+
<% end %>
|
19
30
|
<div class="pulitzer-row" <%= tab_content('templates') %>></div>
|
20
|
-
|
31
|
+
<% if Pulitzer.skip_metadata_auth? || self.instance_eval(&Pulitzer.metadata_closure) %>
|
32
|
+
<div class="pulitzer-row" <%= tab_content('partials') %>></div>
|
33
|
+
<div class="pulitzer-row" <%= tab_content('options') %>></div>
|
34
|
+
<% end %>
|
File without changes
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<div id="<%= dom_id ptcet, :styles_list %>" >
|
2
|
+
<% @ptcet.styles.each do |style| %>
|
3
|
+
<%= render partial: '/pulitzer/styles/show_wrapper', locals: { style: style } %>
|
4
|
+
<% end %>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<div class="pulitzer-row margin-bottom">
|
8
|
+
<%= ajax_link "add a new style for #{ptcet.label}", new_style_path(style: {post_type_content_element_type_id: @ptcet.id}), {}, dom_target(ptcet, :new_style) %>
|
9
|
+
<div id="<%= dom_id(@ptcet, :new_style) %>"></div>
|
10
|
+
</div>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
|
2
|
+
<%= render 'pulitzer/shared/error_messages', object: style %>
|
3
|
+
<%= form_for style, html: ajax_form_hash(dom_target(style.post_type_content_element_type, :styles_list), insert_method: 'append', empty_on_success: dom_target(style.post_type_content_element_type, :new_style)) do |f| %>
|
4
|
+
<%= f.hidden_field :post_type_content_element_type_id %>
|
5
|
+
<div class="pulitzer-span one-fifth">
|
6
|
+
<div class="pulitzer-row">
|
7
|
+
<span class="pulitzer-span heading">
|
8
|
+
display name
|
9
|
+
</span>
|
10
|
+
<span class="pulitzer-span one-half">
|
11
|
+
<%= f.text_field :display_name %>
|
12
|
+
</span>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
<div class="pulitzer-span">
|
16
|
+
<div class="pulitzer-row">
|
17
|
+
<span class="pulitzer-span heading">
|
18
|
+
css class name
|
19
|
+
</span>
|
20
|
+
<span class="pulitzer-span one-half">
|
21
|
+
<%= f.text_field :css_class_name %>
|
22
|
+
</span>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
<div class="pulitzer-span one-fifth">
|
26
|
+
<%= submit_tag "Create" %>
|
27
|
+
</div>
|
28
|
+
<% end %>
|
29
|
+
<a class="button" data-emptier="true" data-target="<%= dom_target(style.post_type_content_element_type, :new_style) %>">Close</a>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<div class="pulitzer-span one-fifth empty padding"> </div>
|
2
|
+
<div class="pulitzer-span one-fifth empty margin">
|
3
|
+
<% if style.first? %>
|
4
|
+
<a data-emptier="true" data-target="<%= dom_target(style.post_type_content_element_type, :styles_container) %>">close styles</a>
|
5
|
+
<% else %>
|
6
|
+
|
7
|
+
<% end %>
|
8
|
+
</div>
|
9
|
+
<div class="pulitzer-span two-fifths margin">
|
10
|
+
<div class="pulitzer-row">
|
11
|
+
<div class="pulitzer-span"><%= style.display_name %> (<%= style.css_class_name %>)</div>
|
12
|
+
<div class="pulitzer-span right"><%= ajax_delete 'ⓧ', style_path(style), {}, dom_target(style) %></div>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
<div class="pulitzer-span one-fifth empty padding"> </div>
|
data/config/routes.rb
CHANGED
@@ -19,6 +19,9 @@ Pulitzer::Engine.routes.draw do
|
|
19
19
|
end
|
20
20
|
|
21
21
|
resources :tags
|
22
|
+
resources :custom_option_lists
|
23
|
+
resources :custom_options
|
24
|
+
|
22
25
|
resources :post_types do
|
23
26
|
member do
|
24
27
|
get :template
|
@@ -28,6 +31,7 @@ Pulitzer::Engine.routes.draw do
|
|
28
31
|
resources :versions
|
29
32
|
resources :content_element_types
|
30
33
|
resources :post_type_content_element_types
|
34
|
+
resources :styles
|
31
35
|
resources :free_form_section_types
|
32
36
|
resources :partial_types do
|
33
37
|
collection do
|
@@ -7,15 +7,17 @@ module Pulitzer
|
|
7
7
|
|
8
8
|
def render_cms_element(element,options = {})
|
9
9
|
if element.image_type?
|
10
|
-
|
10
|
+
render_image_element(element,options)
|
11
11
|
elsif element.video_type?
|
12
|
-
|
12
|
+
render_video_element(element,options)
|
13
|
+
elsif element.clickable_type?
|
14
|
+
render_clickable_element(element,options)
|
13
15
|
else
|
14
16
|
render_body(element,options)
|
15
17
|
end
|
16
18
|
end
|
17
19
|
|
18
|
-
def
|
20
|
+
def render_image_element(element,options = {})
|
19
21
|
if element.image?
|
20
22
|
pulitzer_options = {'data-pulitzer-element' => element.id}
|
21
23
|
if options.is_a? Hash
|
@@ -37,7 +39,23 @@ module Pulitzer
|
|
37
39
|
element.image_url(:cms)
|
38
40
|
end
|
39
41
|
|
40
|
-
def
|
42
|
+
def render_clickable_element(element, options = {})
|
43
|
+
if element.custom_type?
|
44
|
+
render_button(element, options)
|
45
|
+
else
|
46
|
+
render_link(element, options)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def render_link(element,options = {})
|
51
|
+
content_tag(:a, element.title, options.merge(href: element.content, class: element.style.css_class_name))
|
52
|
+
end
|
53
|
+
|
54
|
+
def render_button(element,options = {})
|
55
|
+
content_tag(:button, element.title, options.merge('data-pulitzer-action' => element.content, class: element.style.css_class_name))
|
56
|
+
end
|
57
|
+
|
58
|
+
def render_video_element(element, options = {})
|
41
59
|
content_tag(:iframe, nil, options.merge(src: element.video_link)) if element.video_link
|
42
60
|
end
|
43
61
|
|
data/lib/pulitzer/version.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
describe PagesController do
|
4
|
+
describe "#welcome", type: :request do
|
5
|
+
|
6
|
+
it "renders the welcome page" do
|
7
|
+
version = Pulitzer::PostType.named('Welcome').posts.find_by!(slug: 'welcome').get_active_version!
|
8
|
+
ffs = version.free_form_sections.find_by name: 'Main Content'
|
9
|
+
partial_type = Pulitzer::PostType.create(name: 'partial with no display', kind: Pulitzer::PostType.kinds[:partial], plural: false)
|
10
|
+
ffs.partials.create(post_type_id: partial_type.id)
|
11
|
+
get welcome_path slug: 'welcome'
|
12
|
+
expect(response.status).to eq 200
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
@@ -6,4 +6,11 @@ class PagesController < ApplicationController
|
|
6
6
|
def news_posts
|
7
7
|
@pulitzer_posts = Pulitzer::PostType.named('News articles').posts
|
8
8
|
end
|
9
|
+
|
10
|
+
#Pulitzer Generated Actions
|
11
|
+
|
12
|
+
def welcome
|
13
|
+
@post = Pulitzer::PostType.named('Welcome').posts.find_by!(slug: params[:slug]).get_active_version!
|
14
|
+
end
|
15
|
+
|
9
16
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class PagesController < ApplicationController
|
2
|
+
def about_us
|
3
|
+
@pulitzer_post = Pulitzer::PostType.named('About us').singleton_post.get_preview_version!
|
4
|
+
end
|
5
|
+
|
6
|
+
def news_posts
|
7
|
+
@pulitzer_posts = Pulitzer::PostType.named('News articles').posts.get_preview_version!
|
8
|
+
end
|
9
|
+
|
10
|
+
#Pulitzer Generated Actions
|
11
|
+
|
12
|
+
def welcome
|
13
|
+
@post = Pulitzer::PostType.named('Welcome').posts.find_by!(slug: params[:slug]).get_preview_version!
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<%# BEGIN Auto-generated by Pulitzer %>
|
2
|
+
|
3
|
+
<%= render_cms_element @post.content_element('Hero Title 1') %>
|
4
|
+
|
5
|
+
<%= render_cms_element @post.content_element('Hero Title 2') %>
|
6
|
+
|
7
|
+
<%= render_cms_element @post.content_element('Hero Title 3') %>
|
8
|
+
|
9
|
+
<%= render_cms_element @post.content_element('Guest Title') %>
|
10
|
+
|
11
|
+
<%= render_cms_element @post.content_element('Guest Text') %>
|
12
|
+
|
13
|
+
<%= render_cms_element @post.content_element('Footer Title') %>
|
14
|
+
|
15
|
+
<%= render_cms_element @post.content_element('Footer Text') %>
|
16
|
+
|
17
|
+
<%= render_cms_element @post.content_element('Metadata title') %>
|
18
|
+
|
19
|
+
<%= render_cms_element @post.content_element('Metadata description') %>
|
20
|
+
|
21
|
+
<%= render_cms_element @post.content_element('Metadata keywords') %>
|
22
|
+
|
23
|
+
<%= render_cms_section(@post, 'Main Content') %>
|
24
|
+
|
25
|
+
<%= render_cms_section(@post, 'Handpicked Homes') %>
|
26
|
+
|
27
|
+
<%# END Auto-generated by Pulitzer %>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<%# BEGIN Auto-generated by Pulitzer %>
|
2
|
+
|
3
|
+
<%= render_cms_element @post.content_element('Hero Title 1') %>
|
4
|
+
|
5
|
+
<%= render_cms_element @post.content_element('Hero Title 2') %>
|
6
|
+
|
7
|
+
<%= render_cms_element @post.content_element('Hero Title 3') %>
|
8
|
+
|
9
|
+
<%= render_cms_element @post.content_element('Guest Title') %>
|
10
|
+
|
11
|
+
<%= render_cms_element @post.content_element('Guest Text') %>
|
12
|
+
|
13
|
+
<%= render_cms_element @post.content_element('Footer Title') %>
|
14
|
+
|
15
|
+
<%= render_cms_element @post.content_element('Footer Text') %>
|
16
|
+
|
17
|
+
<%= render_cms_element @post.content_element('Metadata title') %>
|
18
|
+
|
19
|
+
<%= render_cms_element @post.content_element('Metadata description') %>
|
20
|
+
|
21
|
+
<%= render_cms_element @post.content_element('Metadata keywords') %>
|
22
|
+
|
23
|
+
<%= render_cms_section(@post, 'Main Content') %>
|
24
|
+
|
25
|
+
<%= render_cms_section(@post, 'Handpicked Homes') %>
|
26
|
+
|
27
|
+
<%# END Auto-generated by Pulitzer %>
|
data/spec/dummy/config/routes.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
Rails.application.routes.draw do
|
2
|
+
get 'welcome/:slug' => 'pages#welcome', as: 'welcome'
|
2
3
|
mount Pulitzer::Engine => "/pulitzer"
|
3
4
|
root to: 'pages#news_posts'
|
4
5
|
get '/about-us', to: 'pages#about_us'
|
5
6
|
get '/news-posts', to: 'pages#news_posts'
|
6
7
|
|
7
8
|
namespace :pulitzer_preview do
|
9
|
+
get 'welcome/:slug' => 'pages#welcome', as: 'welcome'
|
8
10
|
get '/about-us', to: 'pages#about_us', as: 'about_us'
|
9
11
|
end
|
10
12
|
end
|
Binary file
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -835,3 +835,201 @@ Migrating to CreatePulitzerPartialTypes (20170508145431)
|
|
835
835
|
FROM sqlite_temp_master
|
836
836
|
WHERE name='index_pulitzer_tags_on_hierarchical' AND type='index'
|
837
837
|
[0m
|
838
|
+
[1m[36mPulitzer::PostType Load (0.3ms)[0m [1m[34mSELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."name" = ? LIMIT ?[0m [["name", "Welcome"], ["LIMIT", 1]]
|
839
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
840
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "pulitzer_post_types" ("name", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?)[0m [["name", "Welcome"], ["created_at", 2017-05-23 18:19:17 UTC], ["updated_at", 2017-05-23 18:19:17 UTC], ["plural", true]]
|
841
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
842
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
843
|
+
[1m[36mPulitzer::ContentElementType Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = ? LIMIT ?[0m [["name", "Text"], ["LIMIT", 1]]
|
844
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
845
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
846
|
+
[1m[36mPulitzer::ContentElementType Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = ? LIMIT ?[0m [["name", "Image"], ["LIMIT", 1]]
|
847
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
848
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
849
|
+
[1m[36mPulitzer::ContentElementType Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = ? LIMIT ?[0m [["name", "Video"], ["LIMIT", 1]]
|
850
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
851
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
852
|
+
[1m[36mPulitzer::PostTypeContentElementType Load (0.2ms)[0m [1m[34mSELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."sort_order" ASC[0m [["post_type_id", 1]]
|
853
|
+
[1m[36mPulitzer::FreeFormSectionType Load (0.1ms)[0m [1m[34mSELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ?[0m [["post_type_id", 1]]
|
854
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "label", "created_at", "updated_at", "sort_order") VALUES (?, ?, ?, ?, ?)[0m [["post_type_id", 1], ["label", "Hero Title 1"], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC], ["sort_order", 1]]
|
855
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
856
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
857
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "label", "created_at", "updated_at", "sort_order") VALUES (?, ?, ?, ?, ?)[0m [["post_type_id", 1], ["label", "Hero Title 2"], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC], ["sort_order", 2]]
|
858
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
859
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
860
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "label", "created_at", "updated_at", "sort_order") VALUES (?, ?, ?, ?, ?)[0m [["post_type_id", 1], ["label", "Hero Title 3"], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC], ["sort_order", 3]]
|
861
|
+
[1m[35m (1.2ms)[0m [1m[36mcommit transaction[0m
|
862
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
863
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "label", "created_at", "updated_at", "sort_order") VALUES (?, ?, ?, ?, ?)[0m [["post_type_id", 1], ["label", "Guest Title"], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC], ["sort_order", 4]]
|
864
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
865
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
866
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "label", "created_at", "updated_at", "sort_order") VALUES (?, ?, ?, ?, ?)[0m [["post_type_id", 1], ["label", "Guest Text"], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC], ["sort_order", 5]]
|
867
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
868
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
869
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "label", "created_at", "updated_at", "sort_order") VALUES (?, ?, ?, ?, ?)[0m [["post_type_id", 1], ["label", "Footer Title"], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC], ["sort_order", 6]]
|
870
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
871
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
872
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "label", "created_at", "updated_at", "sort_order") VALUES (?, ?, ?, ?, ?)[0m [["post_type_id", 1], ["label", "Footer Text"], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC], ["sort_order", 7]]
|
873
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
874
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
875
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "label", "created_at", "updated_at", "sort_order") VALUES (?, ?, ?, ?, ?)[0m [["post_type_id", 1], ["label", "Metadata title"], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC], ["sort_order", 8]]
|
876
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
877
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
878
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "label", "created_at", "updated_at", "sort_order") VALUES (?, ?, ?, ?, ?)[0m [["post_type_id", 1], ["label", "Metadata description"], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC], ["sort_order", 9]]
|
879
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
880
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
881
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "label", "created_at", "updated_at", "sort_order") VALUES (?, ?, ?, ?, ?)[0m [["post_type_id", 1], ["label", "Metadata keywords"], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC], ["sort_order", 10]]
|
882
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
883
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
884
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name", "sort_order") VALUES (?, ?, ?)[0m [["post_type_id", 1], ["name", "Main Content"], ["sort_order", 11]]
|
885
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
886
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
887
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name", "sort_order") VALUES (?, ?, ?)[0m [["post_type_id", 1], ["name", "Handpicked Homes"], ["sort_order", 12]]
|
888
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
889
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
890
|
+
[1m[36mPulitzer::Post Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT ?[0m [["slug", "welcome"], ["LIMIT", 1]]
|
891
|
+
[1m[36mPulitzer::Post Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "pulitzer_posts" WHERE "pulitzer_posts"."slug" = ? LIMIT ?[0m [["slug", "welcome"], ["LIMIT", 1]]
|
892
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?)[0m [["title", "Welcome"], ["post_type_id", 1], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC], ["slug", "welcome"]]
|
893
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["post_id", 1], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC]]
|
894
|
+
[1m[35m (1.5ms)[0m [1m[36mcommit transaction[0m
|
895
|
+
[1m[36mPulitzer::Version Load (0.2ms)[0m [1m[34mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ?[0m [["post_id", 1], ["status", 0], ["LIMIT", 1]]
|
896
|
+
Creating scope :free_form. Overwriting existing method Pulitzer::ContentElement.free_form.
|
897
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
898
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "pulitzer_content_elements" ("label", "version_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["label", "Hero Title 1"], ["version_id", 1], ["post_type_content_element_type_id", 1], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC]]
|
899
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
900
|
+
[1m[36mPulitzer::Version Load (0.1ms)[0m [1m[34mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ?[0m [["post_id", 1], ["status", 0], ["LIMIT", 1]]
|
901
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
902
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "pulitzer_content_elements" ("label", "version_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["label", "Hero Title 2"], ["version_id", 1], ["post_type_content_element_type_id", 2], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC]]
|
903
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
904
|
+
[1m[36mPulitzer::Version Load (0.1ms)[0m [1m[34mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ?[0m [["post_id", 1], ["status", 0], ["LIMIT", 1]]
|
905
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
906
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "pulitzer_content_elements" ("label", "version_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["label", "Hero Title 3"], ["version_id", 1], ["post_type_content_element_type_id", 3], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC]]
|
907
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
908
|
+
[1m[36mPulitzer::Version Load (0.1ms)[0m [1m[34mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ?[0m [["post_id", 1], ["status", 0], ["LIMIT", 1]]
|
909
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
910
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "pulitzer_content_elements" ("label", "version_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["label", "Guest Title"], ["version_id", 1], ["post_type_content_element_type_id", 4], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC]]
|
911
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
912
|
+
[1m[36mPulitzer::Version Load (0.1ms)[0m [1m[34mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ?[0m [["post_id", 1], ["status", 0], ["LIMIT", 1]]
|
913
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
914
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "pulitzer_content_elements" ("label", "version_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["label", "Guest Text"], ["version_id", 1], ["post_type_content_element_type_id", 5], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC]]
|
915
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
916
|
+
[1m[36mPulitzer::Version Load (0.2ms)[0m [1m[34mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ?[0m [["post_id", 1], ["status", 0], ["LIMIT", 1]]
|
917
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
918
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "pulitzer_content_elements" ("label", "version_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["label", "Footer Title"], ["version_id", 1], ["post_type_content_element_type_id", 6], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC]]
|
919
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
920
|
+
[1m[36mPulitzer::Version Load (0.3ms)[0m [1m[34mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ?[0m [["post_id", 1], ["status", 0], ["LIMIT", 1]]
|
921
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
922
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "pulitzer_content_elements" ("label", "version_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["label", "Footer Text"], ["version_id", 1], ["post_type_content_element_type_id", 7], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC]]
|
923
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
924
|
+
[1m[36mPulitzer::Version Load (0.1ms)[0m [1m[34mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ?[0m [["post_id", 1], ["status", 0], ["LIMIT", 1]]
|
925
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
926
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "pulitzer_content_elements" ("label", "version_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["label", "Metadata title"], ["version_id", 1], ["post_type_content_element_type_id", 8], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC]]
|
927
|
+
[1m[35m (1.4ms)[0m [1m[36mcommit transaction[0m
|
928
|
+
[1m[36mPulitzer::Version Load (0.3ms)[0m [1m[34mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ?[0m [["post_id", 1], ["status", 0], ["LIMIT", 1]]
|
929
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
930
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "pulitzer_content_elements" ("label", "version_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["label", "Metadata description"], ["version_id", 1], ["post_type_content_element_type_id", 9], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC]]
|
931
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
932
|
+
[1m[36mPulitzer::Version Load (0.1ms)[0m [1m[34mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ?[0m [["post_id", 1], ["status", 0], ["LIMIT", 1]]
|
933
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
934
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "pulitzer_content_elements" ("label", "version_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["label", "Metadata keywords"], ["version_id", 1], ["post_type_content_element_type_id", 10], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC]]
|
935
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
936
|
+
[1m[36mPulitzer::Version Load (0.1ms)[0m [1m[34mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ?[0m [["post_id", 1], ["status", 0], ["LIMIT", 1]]
|
937
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
938
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "pulitzer_free_form_sections" ("version_id", "free_form_section_type_id", "name") VALUES (?, ?, ?)[0m [["version_id", 1], ["free_form_section_type_id", 1], ["name", "Main Content"]]
|
939
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
940
|
+
[1m[36mPulitzer::Version Load (0.1ms)[0m [1m[34mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ?[0m [["post_id", 1], ["status", 0], ["LIMIT", 1]]
|
941
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
942
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "pulitzer_free_form_sections" ("version_id", "free_form_section_type_id", "name") VALUES (?, ?, ?)[0m [["version_id", 1], ["free_form_section_type_id", 2], ["name", "Handpicked Homes"]]
|
943
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
944
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
945
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "pulitzer_post_types" ("name", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?)[0m [["name", "Travel Guides"], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC], ["plural", true]]
|
946
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
947
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
948
|
+
[1m[36mPulitzer::Post Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT ?[0m [["slug", "complete-guide-to-breckenridge"], ["LIMIT", 1]]
|
949
|
+
[1m[36mPulitzer::Post Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "pulitzer_posts" WHERE "pulitzer_posts"."slug" = ? LIMIT ?[0m [["slug", "complete-guide-to-breckenridge"], ["LIMIT", 1]]
|
950
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?)[0m [["title", "Complete Guide to Breckenridge"], ["post_type_id", 2], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC], ["slug", "complete-guide-to-breckenridge"]]
|
951
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["post_id", 2], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC]]
|
952
|
+
[1m[35m (1.7ms)[0m [1m[36mcommit transaction[0m
|
953
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
954
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "pulitzer_post_types" ("name", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?)[0m [["name", "Travel Articles"], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC], ["plural", true]]
|
955
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
956
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
957
|
+
[1m[36mPulitzer::Post Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT ?[0m [["slug", "ski-jump-competition"], ["LIMIT", 1]]
|
958
|
+
[1m[36mPulitzer::Post Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "pulitzer_posts" WHERE "pulitzer_posts"."slug" = ? LIMIT ?[0m [["slug", "ski-jump-competition"], ["LIMIT", 1]]
|
959
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?)[0m [["title", "Ski Jump Competition"], ["post_type_id", 3], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC], ["slug", "ski-jump-competition"]]
|
960
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["post_id", 3], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC]]
|
961
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
962
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
963
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "pulitzer_post_types" ("name", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?)[0m [["name", "External Articles"], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC], ["plural", true]]
|
964
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
965
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
966
|
+
[1m[36mPulitzer::Post Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT ?[0m [["slug", "why-visit-breckenridge"], ["LIMIT", 1]]
|
967
|
+
[1m[36mPulitzer::Post Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "pulitzer_posts" WHERE "pulitzer_posts"."slug" = ? LIMIT ?[0m [["slug", "why-visit-breckenridge"], ["LIMIT", 1]]
|
968
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?)[0m [["title", "Why visit Breckenridge"], ["post_type_id", 4], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC], ["slug", "why-visit-breckenridge"]]
|
969
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["post_id", 4], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC]]
|
970
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
971
|
+
[1m[36mPulitzer::Post Load (0.2ms)[0m [1m[34mSELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."title" = ? LIMIT ?[0m [["title", "Welcome"], ["LIMIT", 1]]
|
972
|
+
[1m[36mPulitzer::Version Load (0.2ms)[0m [1m[34mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ?[0m [["post_id", 1], ["status", 0], ["LIMIT", 1]]
|
973
|
+
[1m[36mPulitzer::Version Load (0.2ms)[0m [1m[34mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT ?[0m [["post_id", 1], ["status", 1], ["LIMIT", 1]]
|
974
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
975
|
+
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ?[0m [["status", 1], ["updated_at", 2017-05-23 18:19:18 UTC], ["id", 1]]
|
976
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
977
|
+
[1m[36mPulitzer::Tag Load (0.2ms)[0m [1m[34mSELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ?[0m [["version_id", 1], ["label_type", "Pulitzer::Tag"]]
|
978
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
979
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["status", 4], ["post_id", 1], ["created_at", 2017-05-23 18:19:18 UTC], ["updated_at", 2017-05-23 18:19:18 UTC]]
|
980
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
981
|
+
[ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 7f59cbe8-cae9-47ab-83e1-eddbc8921397) to Async(default) with arguments: #<GlobalID:0x007f852ae6f148 @uri=#<URI::GID gid://dummy/Pulitzer::Version/1>>
|
982
|
+
[1m[36mPulitzer::Version Load (0.5ms)[0m [1m[34mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
983
|
+
[1m[36mPulitzer::Post Load (0.1ms)[0m [1m[34mSELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
984
|
+
[ActiveJob] [Pulitzer::CloneVersionJob] [7f59cbe8-cae9-47ab-83e1-eddbc8921397] Performing Pulitzer::CloneVersionJob from Async(default) with arguments: #<GlobalID:0x007f85278e6440 @uri=#<URI::GID gid://dummy/Pulitzer::Version/1>>
|
985
|
+
[1m[36mPulitzer::Version Load (0.3ms)[0m [1m[34mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT ?[0m [["id", 5], ["LIMIT", 1]]
|
986
|
+
[ActiveJob] [Pulitzer::CloneVersionJob] [7f59cbe8-cae9-47ab-83e1-eddbc8921397] [1m[36mPulitzer::Post Load (0.2ms)[0m [1m[34mSELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
987
|
+
[1m[36mPulitzer::Version Load (0.1ms)[0m [1m[34mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT ?[0m [["post_id", 1], ["status", 1], ["LIMIT", 1]]
|
988
|
+
[ActiveJob] [Pulitzer::CloneVersionJob] [7f59cbe8-cae9-47ab-83e1-eddbc8921397] Pulitzer::CloneVersion !!!
|
989
|
+
[1m[36mPulitzer::ContentElement Load (0.2ms)[0m [1m[34mSELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC[0m [["version_id", 1]]
|
990
|
+
[ActiveJob] [Pulitzer::CloneVersionJob] [7f59cbe8-cae9-47ab-83e1-eddbc8921397] bin/rails
|
991
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
992
|
+
[ActiveJob] [Pulitzer::CloneVersionJob] [7f59cbe8-cae9-47ab-83e1-eddbc8921397] [1m[36mPulitzer::Version Load (0.1ms)[0m [1m[34mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ?[0m [["post_id", 1], ["status", 4], ["LIMIT", 1]]
|
993
|
+
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "pulitzer_content_elements" SET "body" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ?[0m [["body", "Hero Title 1"], ["updated_at", 2017-05-23 18:19:18 UTC], ["id", 1]]
|
994
|
+
[ActiveJob] [Pulitzer::CloneVersionJob] [7f59cbe8-cae9-47ab-83e1-eddbc8921397] [1m[36mPulitzer::ContentElement Load (0.2ms)[0m [1m[34mSELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC[0m [["version_id", 1]]
|
995
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
996
|
+
[ActiveJob] [Pulitzer::CloneVersionJob] [7f59cbe8-cae9-47ab-83e1-eddbc8921397] Performed Pulitzer::CloneVersionJob from Async(default) in 16.83ms
|
997
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
998
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "pulitzer_content_elements" SET "body" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ?[0m [["body", "Hero Title 2"], ["updated_at", 2017-05-23 18:19:18 UTC], ["id", 2]]
|
999
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
1000
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1001
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "pulitzer_content_elements" SET "body" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ?[0m [["body", "Hero Title 3"], ["updated_at", 2017-05-23 18:19:18 UTC], ["id", 3]]
|
1002
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
1003
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1004
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "pulitzer_content_elements" SET "body" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ?[0m [["body", "Guest Title"], ["updated_at", 2017-05-23 18:19:18 UTC], ["id", 4]]
|
1005
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
1006
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1007
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "pulitzer_content_elements" SET "body" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ?[0m [["body", "Guest Text"], ["updated_at", 2017-05-23 18:19:18 UTC], ["id", 5]]
|
1008
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
1009
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1010
|
+
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "pulitzer_content_elements" SET "body" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ?[0m [["body", "Footer Title"], ["updated_at", 2017-05-23 18:19:18 UTC], ["id", 6]]
|
1011
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
1012
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1013
|
+
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "pulitzer_content_elements" SET "body" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ?[0m [["body", "Footer Text"], ["updated_at", 2017-05-23 18:19:18 UTC], ["id", 7]]
|
1014
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
1015
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1016
|
+
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "pulitzer_content_elements" SET "body" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ?[0m [["body", "Metadata title"], ["updated_at", 2017-05-23 18:19:18 UTC], ["id", 8]]
|
1017
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
1018
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1019
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "pulitzer_content_elements" SET "body" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ?[0m [["body", "Metadata description"], ["updated_at", 2017-05-23 18:19:18 UTC], ["id", 9]]
|
1020
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
1021
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1022
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "pulitzer_content_elements" SET "body" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ?[0m [["body", "Metadata keywords"], ["updated_at", 2017-05-23 18:19:18 UTC], ["id", 10]]
|
1023
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
1024
|
+
[1m[36mPulitzer::PostType Load (0.2ms)[0m [1m[34mSELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."name" = ? LIMIT ?[0m [["name", "Welcome"], ["LIMIT", 1]]
|
1025
|
+
[1m[36mPulitzer::PostType Load (0.1ms)[0m [1m[34mSELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."name" = ? LIMIT ?[0m [["name", "Welcome"], ["LIMIT", 1]]
|
1026
|
+
[1m[36mPulitzer::PostType Load (0.1ms)[0m [1m[34mSELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."name" = ? LIMIT ?[0m [["name", "Welcome"], ["LIMIT", 1]]
|
1027
|
+
[1m[36mPulitzer::PostType Load (0.1ms)[0m [1m[34mSELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."name" = ? LIMIT ?[0m [["name", "Welcome"], ["LIMIT", 1]]
|
1028
|
+
[1m[36mPulitzer::PostTypeContentElementType Load (0.2ms)[0m [1m[34mSELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."sort_order" ASC[0m [["post_type_id", 1]]
|
1029
|
+
[1m[36mPulitzer::FreeFormSectionType Load (0.2ms)[0m [1m[34mSELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ?[0m [["post_type_id", 1]]
|
1030
|
+
[1m[36mPulitzer::PostType Load (0.2ms)[0m [1m[34mSELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."name" = ? LIMIT ?[0m [["name", "Welcome"], ["LIMIT", 1]]
|
1031
|
+
[1m[36mPulitzer::PostType Load (0.1ms)[0m [1m[34mSELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."name" = ? LIMIT ?[0m [["name", "Welcome"], ["LIMIT", 1]]
|
1032
|
+
[1m[36mPulitzer::PostType Load (0.1ms)[0m [1m[34mSELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."name" = ? LIMIT ?[0m [["name", "Welcome"], ["LIMIT", 1]]
|
1033
|
+
[1m[36mPulitzer::PostType Load (0.1ms)[0m [1m[34mSELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."name" = ? LIMIT ?[0m [["name", "Welcome"], ["LIMIT", 1]]
|
1034
|
+
[1m[36mPulitzer::PostTypeContentElementType Load (0.2ms)[0m [1m[34mSELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."sort_order" ASC[0m [["post_type_id", 1]]
|
1035
|
+
[1m[36mPulitzer::FreeFormSectionType Load (0.2ms)[0m [1m[34mSELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ?[0m [["post_type_id", 1]]
|