class Attachy::InstallGenerator
Public Instance Methods
create_config()
click to toggle source
# File lib/generators/attachy/install_generator.rb, line 13 def create_config template 'config/attachy.yml.erb', 'config/attachy.yml' end
create_cors()
click to toggle source
# File lib/generators/attachy/install_generator.rb, line 17 def create_cors template 'public/cloudinary_cors.html', 'public/cloudinary_cors.html' end
create_migration()
click to toggle source
# File lib/generators/attachy/install_generator.rb, line 21 def create_migration version = Time.zone.now.strftime('%Y%m%d%H%M%S') template 'db/migrate/create_attachy_files_table.rb', "db/migrate/#{version}_create_attachy_files_table.rb" end