# File lib/mole/models/mole_log.rb, line 9 def log_it( context, feature, user_id, args ) args ||= "no args" user_id ||= "N/A" ip_addr, browser_type = log_details( context ) MoleLog.create( :mole_feature => feature, :user_id => user_id, :host_name => `hostname`, :params => args.to_yaml, :ip_address => ip_addr, :browser_type => browser_type ) end