class EditInPlace::UnsupportedModeError

An error that occurs when a field is rendered with a mode that is does not support.

Public Class Methods

new(mode) click to toggle source

Creates a new instance of {UnsupportedModeError} with the given mode that caused the error. @param mode [Symbol] the mode that caused the error.

Calls superclass method
# File lib/edit_in_place/unsupported_mode_error.rb, line 9
def initialize(mode)
  super("The mode '#{mode}' is not supported by this field type!")
end