Class: Formol::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/formol/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#current_user_helper_methodObject

Returns the value of attribute current_user_helper_method

Returns:

  • (Object)

    the current value of current_user_helper_method



2
3
4
# File 'lib/formol/config.rb', line 2

def current_user_helper_method
  @current_user_helper_method
end

#default_avatarObject

Returns the value of attribute default_avatar

Returns:

  • (Object)

    the current value of default_avatar



2
3
4
# File 'lib/formol/config.rb', line 2

def default_avatar
  @default_avatar
end

#email_fromObject

Returns the value of attribute email_from

Returns:

  • (Object)

    the current value of email_from



2
3
4
# File 'lib/formol/config.rb', line 2

def email_from
  @email_from
end

#formatterObject

Returns the value of attribute formatter

Returns:

  • (Object)

    the current value of formatter



2
3
4
# File 'lib/formol/config.rb', line 2

def formatter
  @formatter
end

#text_formatterObject

Returns the value of attribute text_formatter

Returns:

  • (Object)

    the current value of text_formatter



2
3
4
# File 'lib/formol/config.rb', line 2

def text_formatter
  @text_formatter
end

#user_classObject

Returns the value of attribute user_class

Returns:

  • (Object)

    the current value of user_class



2
3
4
# File 'lib/formol/config.rb', line 2

def user_class
  @user_class
end

Instance Method Details

#userObject



9
10
11
# File 'lib/formol/config.rb', line 9

def user
  @user ||= user_class.constantize
end