Method: StandardError#rails_tag

Defined in:
lib/coaster/core_ext/standard_error.rb

#rails_tagObject



180
181
182
183
184
185
186
187
188
189
190
# File 'lib/coaster/core_ext/standard_error.rb', line 180

def rails_tag
  (fingerprint || Coaster.default_fingerprint).flatten.map do |fp|
    if fp == true || fp == :class
      self.class.name
    elsif fp == :default || fp == '{{ default }}'
      nil
    else
      fp
    end
  end.compact
end