class SystemMetrics::Generators::InstallGenerator
Public Instance Methods
copy_css_files()
click to toggle source
# File lib/generators/system_metrics/install/install_generator.rb, line 11 def copy_css_files directory "stylesheets", "#{assets_path_for_rails_versions}/stylesheets/system_metrics", :recursive => true end
copy_image_files()
click to toggle source
# File lib/generators/system_metrics/install/install_generator.rb, line 15 def copy_image_files directory "images", "#{assets_path_for_rails_versions}/images/system_metrics", :recursive => true end
Private Instance Methods
assets_path_for_rails_versions()
click to toggle source
# File lib/generators/system_metrics/install/install_generator.rb, line 20 def assets_path_for_rails_versions ::Rails.version >= "3.1.0" ? "app/assets" : "public" end