Skip to content
Snippets Groups Projects
Commit 128035fb authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

fixing metadata hash conversion

parent 3a9b9759
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ module Metadatable
def get_metadata_values_of key
values = []
metadata = JSON.parse(metadata) if metadata.class == String
unless metadata.blank?
metadata.each do |m|
m = m.with_indifferent_access
......
......@@ -2,7 +2,7 @@ module Stateful
extend ActiveSupport::Concern
included do
validate_presence_of :state
validates_presence_of :state
end
def is_published?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment