Module: RailsAdminCMS::Config
Instance Attribute Summary collapse
- #custom_form_max_size ⇒ Object
- #exception_backtrace_size ⇒ Object
-
#hide_current_locale ⇒ Object
writeonly
Sets the attribute hide_current_locale.
- #parent_controller ⇒ Object
- #parent_mailer ⇒ Object
-
#with_email_body ⇒ Object
writeonly
Sets the attribute with_email_body.
Instance Method Summary collapse
Instance Attribute Details
#custom_form_max_size ⇒ Object
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_size ⇒ Object
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
13 14 15 |
# File 'lib/rails_admin_cms/config.rb', line 13 def hide_current_locale=(value) @hide_current_locale = value end |
#parent_controller ⇒ Object
26 27 28 |
# File 'lib/rails_admin_cms/config.rb', line 26 def parent_controller @parent_controller || ::ApplicationController end |
#parent_mailer ⇒ Object
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
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
42 43 44 |
# File 'lib/rails_admin_cms/config.rb', line 42 def hide_current_locale? @hide_current_locale end |
#with_email_body? ⇒ Boolean
38 39 40 |
# File 'lib/rails_admin_cms/config.rb', line 38 def with_email_body? @with_email_body end |