Class: SimpleCrop::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/simple_crop/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_jcrop_filesObject



11
12
13
14
15
# File 'lib/generators/simple_crop/install_generator.rb', line 11

def copy_jcrop_files
  copy_file 'jquery.Jcrop.min.js', 'public/javascripts/jquery.Jcrop.min.js'
  copy_file 'jquery.Jcrop.css', 'public/stylesheets/jquery.Jcrop.css'
  copy_file 'Jcrop.gif', 'public/images/Jcrop.gif'
end

#copy_simple_crop_fileObject



7
8
9
# File 'lib/generators/simple_crop/install_generator.rb', line 7

def copy_simple_crop_file
  copy_file 'jquery.simple-crop.js', 'public/javascripts/jquery.simple-crop.js'
end

#show_readmeObject



17
18
19
# File 'lib/generators/simple_crop/install_generator.rb', line 17

def show_readme
  readme "README" if behavior == :invoke
end