Module: RailsAdminCMS::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/rails_admin_cms/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#custom_form_max_sizeObject



34
35
36
# File 'lib/rails_admin_cms/config.rb', line 34

def custom_form_max_size
  @custom_form_max_size || 20
end

#exception_backtrace_sizeObject



46
47
48
# File 'lib/rails_admin_cms/config.rb', line 46

def exception_backtrace_size
  @exception_backtrace_size || 10
end

#hide_current_locale=(value) ⇒ Object (writeonly)

Sets the attribute hide_current_locale

Parameters:

  • value

    the value to set the attribute hide_current_locale to.



13
14
15
# File 'lib/rails_admin_cms/config.rb', line 13

def hide_current_locale=(value)
  @hide_current_locale = value
end

#parent_controllerObject



26
27
28
# File 'lib/rails_admin_cms/config.rb', line 26

def parent_controller
  @parent_controller || ::ApplicationController
end

#parent_mailerObject



30
31
32
# File 'lib/rails_admin_cms/config.rb', line 30

def parent_mailer
  @parent_mailer || "::ApplicationMailer".safe_constantize || BlackHole
end

#with_email_body=(value) ⇒ Object (writeonly)

Sets the attribute with_email_body

Parameters:

  • value

    the value to set the attribute with_email_body to.



13
14
15
# File 'lib/rails_admin_cms/config.rb', line 13

def with_email_body=(value)
  @with_email_body = value
end

Instance Method Details

#hide_current_locale?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/rails_admin_cms/config.rb', line 42

def hide_current_locale?
  @hide_current_locale
end

#with_email_body?Boolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/rails_admin_cms/config.rb', line 38

def with_email_body?
  @with_email_body
end