Is it possible to discover which classes are not used in a Ruby on Rails application? -
in our project had "forgotten" classes lying around quite time.
those classes substituted other ones forgot delete them. there automated way/tool discover classes not being used in ruby {on rails,} application?
thanks !
this question has been made lot of times, best answers compiled in here:
i, personally, liked log parsing:
https://stackoverflow.com/a/14161807
but in case can create own logger extending activerecord::base create observer stores in database used modules. after prudential time, able reverse find models not called once.
there other profesional tools (paid) measures app behaviour:
i've used 1 in project , did great working measuring controller usage. might find useful.
Comments
Post a Comment