Optimizing a Ruby on Rails project

I'm busy making a very simplified ruby ​​in a rails app that doesn't need a lot of stuff loaded into a ruby ​​on rails environment by default.

I won't be using mysql , just one model that fetches data from a Yaml file. So I think I won't need ActiveRecord, or at least most of it. (Correct me if I am wrong here);

How can I clear all unnecessary stuff from my application. (How to stop the app from looking in /config/database.yml for a configuration I don't need)

And when it's over, how do I know which things are loaded but not needed? Example: ActionMailer .

Thanks
Steve

+1


a source to share


1 answer


In your environment .rb - File:



 # Skip frameworks you're not going to use. To use Rails without a database,
 # you must remove the Active Record framework.
 config.frameworks -= [ :active_record, :active_resource, :action_mailer ]

      

+3


a source







All Articles