Sha256: 14d0c64a5f9a8dea5d74329e71913eb8cfc209fdd328b1366d75b13ed97a46e6

Contents?: true

Size: 890 Bytes

Versions: 8

Compression:

Stored size: 890 Bytes

Contents

if get(:angular_admin)

  after(:admin_install) do
    copy_file 'assets/active_admin/init_activeadmin_angular.rb', 'config/initializers/init_activeadmin_angular.rb'

    create_file 'app/assets/javascripts/admin_app.js', "angular.module('ActiveAdmin', []);"

    copy_file 'assets/active_admin/active_admin.js.coffee', 'app/assets/javascripts/active_admin.js.coffee', force: true

    empty_directory 'app/assets/javascripts/admin'
    empty_directory 'app/assets/javascripts/admin/controllers'
    empty_directory 'app/assets/javascripts/admin/services'
    empty_directory 'app/assets/javascripts/admin/directives'

    create_file 'app/assets/javascripts/admin/controllers/.keep'
    create_file 'app/assets/javascripts/admin/services/.keep'
    create_file 'app/assets/javascripts/admin/directives/.keep'

    inside('.') do
      run('bower install angular --save')
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
potassium-1.3.3 lib/potassium/templates/application/recipes/angular_admin.rb
potassium-1.3.2 lib/potassium/templates/application/recipes/angular_admin.rb
potassium-1.3.0 lib/potassium/templates/application/recipes/angular_admin.rb
potassium-1.2.4 lib/potassium/templates/application/recipes/angular_admin.rb
potassium-1.2.3 lib/potassium/templates/application/recipes/angular_admin.rb
potassium-1.2.2 lib/potassium/templates/application/recipes/angular_admin.rb
potassium-1.2.1 lib/potassium/templates/application/recipes/angular_admin.rb
potassium-1.2.0 lib/potassium/templates/application/recipes/angular_admin.rb