Sha256: b67d73868379c865a637ee47844d7624468175a1a2ef29ad4d0917cb5ac44fab
Contents?: true
Size: 867 Bytes
Versions: 5
Compression:
Stored size: 867 Bytes
Contents
require 'rails' module Activoate class Engine < Rails::Engine # Sets default values for the generators initializer "generator default values" do |app| # Have attrtastic? begin require 'attrtastic' config.attrtastic = true rescue LoadError config.attrtastic = false end # Using haml? begin require 'haml' config.engine = 'haml' rescue LoadError config.engine = 'erb' end # Using formtastic? begin require 'formtastic' config.formtastic = true rescue LoadError config.formtastic = false end # Using will_paginate? begin require 'will_paginate' config.will_paginate = true rescue LoadError config.will_paginate = false end end end end
Version data entries
5 entries across 5 versions & 1 rubygems