Module: DeprecationNotification::StringParser

Defined in:
app/models/concerns/deprecation_notification.rb

Instance Method Summary collapse

Instance Method Details

#initialize(template, options = {}) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'app/models/concerns/deprecation_notification.rb', line 3

def initialize(template, options = {})
  options[:version] = '6.8'  if options[:version] == '2.0' ||
                                options[:version] == '2.1'
  options[:version] = '6.9'  if options[:version] == '2.2' ||
                                options[:version] == '2.3'
  options[:version] = '6.10' if options[:version] == '2.4' ||
                                options[:version] == '2.5'
  super(template, options)
end