Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/models/article.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Article < Content
include PublifyGuid
include ConfigManager

serialize :settings, Hash
serialize :settings, Hash, coder: YAML

content_fields :body, :extended

Expand Down
2 changes: 1 addition & 1 deletion app/models/blog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Blog < ApplicationRecord

validates :blog_name, presence: true

serialize :settings, Hash
serialize :settings, Hash, coder: YAML

# Description
setting :blog_name, :string, "My Shiny Weblog!"
Expand Down
2 changes: 1 addition & 1 deletion app/models/content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Content < ApplicationRecord
where(published_at: PublifyTime.delta_like(date_at))
}

serialize :whiteboard
serialize :whiteboard, coder: YAML

validates_default_string_length :title, :author, :permalink, :name,
:post_type, :text_filter_name
Expand Down
2 changes: 1 addition & 1 deletion app/models/note.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Note < Content
include PublifyGuid
include ConfigManager

serialize :settings, Hash
serialize :settings, Hash, coder: YAML

setting :twitter_id, :string, ""
setting :in_reply_to_status_id, :string, ""
Expand Down
2 changes: 1 addition & 1 deletion app/models/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Page < Content

include ConfigManager

serialize :settings, Hash
serialize :settings, Hash, coder: YAML
setting :password, :string, ""

before_save :set_permalink
Expand Down
2 changes: 1 addition & 1 deletion app/models/sidebar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# This class cannot be autoloaded since other sidebar classes depend on it.
class Sidebar < ApplicationRecord
serialize :config, Hash
serialize :config, Hash, coder: YAML

belongs_to :blog

Expand Down
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class User < ApplicationRecord

has_many :articles

serialize :settings, Hash
serialize :settings, Hash, coder: YAML

STATUS = %w(active inactive).freeze

Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160605154632_remove_profiles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class RemoveProfiles < ActiveRecord::Migration[4.2]
class Profile < ActiveRecord::Base
serialize :modules
serialize :modules, coder: YAML
end

def up
Expand Down
4 changes: 2 additions & 2 deletions db/migrate/20190208152646_move_text_filter_to_name.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class User < ActiveRecord::Base
end

class TextFilter < ActiveRecord::Base
serialize :filters, Array
serialize :params, Hash
serialize :filters, Array, coder: YAML
serialize :params, Hash, coder: YAML
end

def up
Expand Down