module DealRedemptions
Used to check if admin interface is set to false If so, disable all admin routes
Constants
- VERSION
Public Class Methods
config()
click to toggle source
# File lib/deal_redemptions/engine.rb, line 53 def self.config Rails.application.config end
configure() { |config| ... }
click to toggle source
Maps the vars from hosted app into the engine
# File lib/deal_redemptions/engine.rb, line 33 def self.configure(&block) @@config ||= DealRedemptions::Engine::Configuration.new # Default vars if not overwritten @@config.site_name = 'Deal Site Redemptions' @@config.welcome_notice = 'Please select a deal site to redeem your voucher:' @@config.logo = '/assets/deal-redemptions-logo.png' # Admin panel default enabled @@config.admin_interface = true @@config.disable_powered = false # Custom styling for redemption pages @@config.stylesheet = nil # Overwrite default email for notifications and redemptions @@config.email_address = 'noreply@domain.com' yield @@config if block return @@config end