Sha256: a8b35d89982ce30d6fb9946ac81122e4531e25a00e80b09863bda9398b89eaff
Contents?: true
Size: 906 Bytes
Versions: 3
Compression:
Stored size: 906 Bytes
Contents
module RailsAdminCMS def self.config(&block) if block_given? block.call(RailsAdminCMS::Config) else RailsAdminCMS::Config end end module Config extend self attr_writer( :parent_controller, :parent_mailer, :custom_form_max_size, :with_email_body, :hide_current_locale, :exception_backtrace_size ) attr_accessor( :allow_iframe_from, ) def parent_controller @parent_controller || ::ApplicationController end def parent_mailer @parent_mailer || "::ApplicationMailer".safe_constantize || BlackHole end def custom_form_max_size @custom_form_max_size || 20 end def with_email_body? @with_email_body end def hide_current_locale? @hide_current_locale end def exception_backtrace_size @exception_backtrace_size || 10 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rails_admin_cms-0.1.1 | lib/rails_admin_cms/config.rb |
rails_admin_cms-0.0.9 | lib/rails_admin_cms/config.rb |
rails_admin_cms-0.0.7 | lib/rails_admin_cms/config.rb |