Sha256: d0040f04edfe4f91274c517917126c181088ffcc9497e33347f2b7027e17b98c
Contents?: true
Size: 723 Bytes
Versions: 1
Compression:
Stored size: 723 Bytes
Contents
require 'rails/generators' module Blacksand module Generators class InstallGenerator < Rails::Generators::Base def install create_file("config/initializers/blacksand.rb", <<-RUBY) Blacksand.site_id = 'site id' Blacksand.site_name = 'site name' Blacksand.root_path = 'root path' # Setup authentication to be run as a before filter # @example Devise admin # Blacksand.authenticate_with do # authenticate_admin! # end # Blacksand.carrierwave_storage = :file # Blacksand.carrierwave_store_dir_prefix = 'uploads' # NOTICE: Kindeditor need config by their api # Page caching # Blacksand.page_caching = false RUBY rake 'railties:install:migrations' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacksand-2.2.2.1 | lib/generators/blacksand/install_generator.rb |