module ClarkKent
Constants
- VERSION
Public Class Methods
bucket_name()
click to toggle source
# File lib/clark_kent.rb, line 10 def self.bucket_name @@bucket_name || "clark-kent" end
config(options)
click to toggle source
# File lib/clark_kent.rb, line 14 def self.config(options) @@resource_options = options[:resource_options].map{|option_hash| ClarkKent::ResourceOption.new option_hash} if options.has_key? :resource_options @@user_class_name = options[:user_class_name] @@bucket_name = options[:bucket_name] @@other_sharing_scopes = options[:other_sharing_scopes] || [] base_controller_name = options[:base_controller_name] @@base_controller = base_controller_name.constantize if base_controller_name.present? @@custom_report_links = options[:custom_report_links] || [] @@current_user_method = options[:current_user_method] @@work_queue = options[:work_queue] @@email_security = options[:email_security] end
user_class()
click to toggle source
# File lib/clark_kent.rb, line 27 def self.user_class @@user_class = (@@user_class_name || "User").constantize end