lib/mods_display/configuration/imprint.rb in mods_display-0.3.3 vs lib/mods_display/configuration/imprint.rb in mods_display-0.3.4

- old
+ new

@@ -1,8 +1,13 @@ -class ModsDisplay::Configuration::Imprint < ModsDisplay::Configuration::Base - def full_date_format full_date_format="%B %d, %Y" - @full_date_format ||= full_date_format +module ModsDisplay + class Configuration + class Imprint < Base + def full_date_format(full_date_format = '%B %d, %Y') + @full_date_format ||= full_date_format + end + + def short_date_format(short_date_format = '%B %Y') + @short_date_format ||= short_date_format + end + end end - def short_date_format short_date_format="%B %Y" - @short_date_format ||= short_date_format - end -end \ No newline at end of file +end