Module: ModelLog
- Defined in:
- lib/model_log.rb,
 lib/model_log/request.rb,
 lib/model_log/version.rb,
 lib/model_log/passport.rb,
 lib/model_log/class_methods/models.rb,
 lib/model_log/class_methods/controllers.rb
Defined Under Namespace
Modules: ClassMethods, Passport, Request
Constant Summary collapse
- VERSION =
- "1.0.2"
Class Attribute Summary collapse
- 
  
    
      .current_user_method  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute current_user_method. 
- 
  
    
      .platform  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute platform. 
- 
  
    
      .user_name_field  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute user_name_field. 
Class Method Summary collapse
Class Attribute Details
.current_user_method ⇒ Object
Returns the value of attribute current_user_method.
| 9 10 11 | # File 'lib/model_log.rb', line 9 def current_user_method @current_user_method end | 
.platform ⇒ Object
Returns the value of attribute platform.
| 9 10 11 | # File 'lib/model_log.rb', line 9 def platform @platform end | 
.user_name_field ⇒ Object
Returns the value of attribute user_name_field.
| 9 10 11 | # File 'lib/model_log.rb', line 9 def user_name_field @user_name_field end | 
Class Method Details
.info(content) ⇒ Object
| 11 12 13 14 15 16 | # File 'lib/model_log.rb', line 11 def info(content) content = content.chomp + "\n" File.open("#{Rails.root}/log/model_log_#{Rails.env}.log", "a+") do |output| output.write(content) end end |