Sha256: aac3751964ecf506ae7872926f5a61d2fd3898a0a6b2c60774f9d5831650df36

Contents?: true

Size: 1.08 KB

Versions: 3

Compression:

Stored size: 1.08 KB

Contents

# Use Bundler (preferred)
environment = File.expand_path('../../vendor/gems/environment', __FILE__)
if File.exist?("#{environment}.rb")
  require environment

# Use 2.x style vendor/rails and RubyGems
else
  vendor_rails = File.expand_path('../../vendor/rails', __FILE__)
  if File.exist?(vendor_rails)
    Dir["#{vendor_rails}/*/lib"].each { |path| $:.unshift(path) }
  end

  require 'rubygems'
end

<% unless options[:skip_activerecord] -%>
require 'rails/all'

# To pick the frameworks you want, remove 'require "rails/all"'
# and list the framework railties that you want:
#
# require "active_support/railtie"
# require "active_model/railtie"
# require "active_record/railtie"
# require "action_controller/railtie"
# require "action_view/railtie"
# require "action_mailer/railtie"
# require "active_resource/railtie"
<% else -%>
# Pick the frameworks you want:
# require "active_model/railtie"
# require "active_record/railtie"
require "active_support/railtie"
require "action_controller/railtie"
require "action_view/railtie"
require "action_mailer/railtie"
require "active_resource/railtie"
<% end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
very_nifty_generators-0.2.1 lib/generators/nifty/app/templates/config/boot.rb
very_nifty_generators-0.2.0 lib/generators/nifty/app/templates/config/boot.rb
very_nifty_generators-0.1.2 lib/generators/nifty/app/templates/config/boot.rb