Skip to content
Open
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
1 change: 0 additions & 1 deletion lib/rails-settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ def self.has_settings(*args, &block)
extend RailsSettings::Scopes
end
end

4 changes: 3 additions & 1 deletion lib/rails-settings/setting_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ class SettingObject < ActiveRecord::Base
end
end

serialize :value, Hash
if self.columns_hash['value'].type.to_sym == :text
serialize :value, Hash
end

if RailsSettings.can_protect_attributes?
# attr_protected can not be used here because it touches the database which is not connected yet.
Expand Down