Class: AuditLog::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/audit-log/configuration.rb

Instance Attribute Summary collapse

Instance Attribute Details

#current_user_methodObject

current_user method name in your Controller, default: ‘current_user’



9
10
11
# File 'lib/audit-log/configuration.rb', line 9

def current_user_method
  @current_user_method
end

#table_nameObject

set a speicla table_name for AuditLog Model, default: ‘audit_logs’



15
16
17
# File 'lib/audit-log/configuration.rb', line 15

def table_name
  @table_name
end

#user_classObject

class name of you User model, default: ‘User’



6
7
8
# File 'lib/audit-log/configuration.rb', line 6

def user_class
  @user_class
end

#user_name_methodObject

user name method, default: “name”



12
13
14
# File 'lib/audit-log/configuration.rb', line 12

def user_name_method
  @user_name_method
end