Class: Hydra::AssetsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Hydra::AssetsGenerator
- Defined in:
- lib/generators/hydra/assets_generator.rb
Instance Method Summary collapse
Instance Method Details
#assets ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/generators/hydra/assets_generator.rb', line 19 def assets insert_into_file "app/assets/stylesheets/application.css", :after => " *= require_self" do %q{ * * Required by Hydra *= require 'hydra/styles' } end insert_into_file "app/assets/javascripts/application.js", :after => "//= require jquery_ujs" do %q{ // Required by Hydra //= require 'jquery.ui.datepicker.js' } end end |