Sha256: f64bc5eb12efbdde6ffaa2fa474823bd57849f6f44061a76ba93fbd475799248
Contents?: true
Size: 648 Bytes
Versions: 2
Compression:
Stored size: 648 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 ) 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_admin_cms-0.0.6 | lib/rails_admin_cms/config.rb |
rails_admin_cms-0.0.5 | lib/rails_admin_cms/config.rb |