Class: Datatables::Generators::InstallGenerator

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

Constant Summary collapse

@@datatables_version =
"1.7.5"

Instance Method Summary collapse

Instance Method Details

#copy_datatableObject



11
12
13
14
15
16
17
18
# File 'lib/generators/datatables/install/install_generator.rb', line 11

def copy_datatable
  say_status("copying", "Datatable (#{@@datatables_version}) JS File", :green)
  copy_file "javascripts/jquery.dataTables.min.js", "public/javascripts/jquery.dataTables.min.js"
  
  say_status("copying", "Datatable CSS Files", :green)
  copy_file "stylesheets/datatable_page.css", "public/stylesheets/datatable_page.css"
  copy_file "stylesheets/datatable_table.css", "public/stylesheets/datatable_table.css"
end