cleanup / organise the /config/initializers folder for new rails 4 project
Migrating from a rails 3 project and found that I have to many
initialisers for my taste, trying to clean out the config folder and
minimise the use of initialisers or better organise them.
Currently I have:
drwxr-xr-x 35 Me staff 1190 Sep 10 23:37 .
drwxr-xr-x 31 Me staff 1054 Sep 10 23:35 ..
-rw-r--r-- 1 Me staff 0 Sep 10 23:37 a.txt
-rw-r--r-- 1 Me staff 404 Jun 22 14:54 backtrace_silencers.rb
-rw-r--r-- 1 Me staff 70 Sep 7 05:07 better_errors.rb
-rw-r--r-- 1 Me staff 741 Jun 22 14:54 carrierwave_initializer.rb
-rw-r--r-- 1 Me staff 11806 Sep 7 05:18 devise.rb
-rw-r--r-- 1 Me staff 85 Jun 22 14:54 devise_async.rb
-rw-r--r-- 1 Me staff 86 Jun 22 14:54 disable_ar_logging.rb
-rw-r--r-- 1 Me staff 440 Aug 19 11:46 exception_notification.rb
-rw-r--r-- 1 Me staff 72 Jun 22 14:54 faye_token.rb
-rw-r--r-- 1 Me staff 192 Sep 10 23:09 filter_parameter_logging.rb
-rw-r--r-- 1 Me staff 589 Jun 22 14:54 fix_ssl.rb
-rw-r--r-- 1 Me staff 116 Jun 22 14:54 haml.rb
-rw-r--r-- 1 Me staff 160 Jun 22 14:54 i18n.rb
-rw-r--r-- 1 Me staff 1347 Jun 22 14:54 i18n_lookup.rb
-rw-r--r-- 1 Me staff 192 Jun 22 14:54 impression.rb
-rw-r--r-- 1 Me staff 590 Sep 10 23:10 inflections.rb
-rw-r--r-- 1 Me staff 79 Jun 24 09:07 load_config.rb
-rw-r--r-- 1 Me staff 383 Jun 22 14:54 logging.rb
-rw-r--r-- 1 Me staff 205 Jun 22 14:54 mime_types.rb
-rw-r--r-- 1 Me staff 228 Jun 22 14:54 omniauth.rb
-rw-r--r-- 1 Me staff 538 Jun 22 14:54 omnicontacts.rb
-rw-r--r-- 1 Me staff 136 Jun 22 14:54 prowler.rb
-rw-r--r-- 1 Me staff 2393 Jun 23 22:21 rack_attack.rb
-rw-r--r-- 1 Me staff 1066 Jun 22 14:54 redis.rb
-rw-r--r-- 1 Me staff 498 Jun 22 14:54 secret_token.rb
-rw-r--r-- 1 Me staff 141 Sep 10 23:11 session_store.rb
-rw-r--r-- 1 Me staff 149 Jun 22 14:54 sidekiq.rb
-rw-r--r-- 1 Me staff 505 Jun 22 14:54 simple_captcha.rb
-rw-r--r-- 1 Me staff 7050 Jun 22 14:54 simple_form.rb
-rw-r--r-- 1 Me staff 81 Jun 22 14:54 simple_navigation.rb
-rw-r--r-- 1 Me staff 1535 Jun 22 14:54 simple_navigation_overrule.rb
-rw-r--r-- 1 Me staff 27 Jun 22 14:54 will_paginate.rb
-rw-r--r-- 1 Me staff 514 Sep 10 23:12 wrap_parameters.rb
Are there ways to clean this up a bit or use subfolders to organise this
better? I feel there are several initialisers im not sure still needed
like the fix_ssl.rb one and some other initialisers that only have a 1
line.
Preferrable I would like to clean this up more
No comments:
Post a Comment