Hi again!

I slowly generated each resource and migrate after each one and when
it came to user model I encountered strange problem.

There is method 'method_missing' (below) that throws NoMethodError
Error is located at ' return super' line
You can check stacktrace here: https://gist.github.com/1063958

def method_missing(method, *args, &block)
    str = method.to_s
    if(str.length < 11)
      return super
    end
    if(str[0,10] == 'calls_week')
      week = str[10, str.length - 10].to_i
      return super if (week == nil)
      return calls_week(week)
    end
    if(str[0,10] == 'leads_week')
      week = str[10, str.length - 10].to_i
      return super if (week == nil)
      return leads_week(week)
    end
    if(str[0,10] == 'projs_week')
      week = str[10, str.length - 10].to_i
      return super if (week == nil)
      return projs_week(week)
    end
    super
  end

Do you know why this method was defined like this and how to make it
work with updated gems again?

Thank you in advance!
  Piotr Stepniak

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to