api/lib/mno_enterprise/intercom_events_listener.rb
Method info
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def info(key, current_user_id, description, subject_type, subject_id, metadata)
u = User.find(current_user_id)
data = {created_at: Time.now.to_i, email: u.email, user_id: u.id, event_name: key.tr('_', '-')}
case key
when 'user_update', 'organization_update'
Method info
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def info(key, current_user_id, description, subject_type, subject_id, metadata)