Skip to content

Commit

Permalink
Put the display_microdata default in the config
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Feb 24, 2016
1 parent bc5055e commit f441aa8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ def fits_message_length
attr_accessor :temp_file_base, :enable_local_ingest,
:analytics, :analytic_start_date,
:resource_types, :resource_types_to_schema,
:display_microdata, :microdata_default_type
:microdata_default_type

attr_writer :display_microdata
def display_microdata
return @display_microdata unless @display_microdata.nil?
@display_microdata = true
end

attr_writer :max_days_between_audits
def max_days_between_audits
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
'Other' => 'Other'
}

config.display_microdata = true
# Should schema.org microdata be displayed?
# config.display_microdata = true

config.microdata_default_type = 'http://schema.org/CreativeWork'

config.resource_types_to_schema = config.resource_types.map do |k, v|
Expand Down

0 comments on commit f441aa8

Please sign in to comment.