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:

find unused code in rails app

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:

http://newrelic.com/

i've used 1 in project , did great working measuring controller usage. might find useful.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -