lib/framework/rho/rhoapplication.rb in rhodes-2.4.1 vs lib/framework/rho/rhoapplication.rb in rhodes-3.0.0.beta.1

- old
+ new

@@ -153,10 +153,10 @@ controller_class = req['model']+'Controller' undercase = controller_class.split(/(?=[A-Z])/).map{|w| w.downcase}.join("_") undercase.slice!(0) if undercase.start_with?('_') #TODO: WP7 - for some reason it added _ at the start - if Rho::file_exist?( req[:modelpath]+ undercase +'.iseq' ) + if Rho::file_exist?( req[:modelpath]+ undercase +RHO_RB_EXT ) require req['model'] + '/' + undercase #req[:modelpath]+ undercase else require req['model'] + '/controller' #req[:modelpath]+'controller' end