Sha256: 2dc46c17870e2301c1da0b4de26e0188bbd6882daeb7a262655643cbdcb64e02

Contents?: true

Size: 544 Bytes

Versions: 5

Compression:

Stored size: 544 Bytes

Contents

module ActiveAdminMultiUpload
  class ResourceGenerator < Rails::Generators::NamedBase
    source_root File.expand_path('../templates', __FILE__)

    def add_js_assets
      append_file "app/assets/javascripts/active_admin.js.coffee", "#= require jquery-fileupload\n"
      append_file "app/assets/javascripts/active_admin.js.coffee", "#= require jquery-fileupload/vendor/tmpl\n"
    end

    def add_css_assets
      append_file "app/assets/stylesheets/active_admin.css.scss", '@import "jquery.fileupload-ui";'
    end

    private
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_admin_multi_upload-0.0.5 lib/generators/active_admin_multi_upload/resource/resource_generator.rb
active_admin_multi_upload-0.0.4 lib/generators/active_admin_multi_upload/resource/resource_generator.rb
active_admin_multi_upload-0.0.3 lib/generators/active_admin_multi_upload/resource/resource_generator.rb
active_admin_multi_upload-0.0.2 lib/generators/active_admin_multi_upload/resource/resource_generator.rb
active_admin_multi_upload-0.0.1 lib/generators/active_admin_multi_upload/resource/resource_generator.rb