Sha256: 02a27edaca0bc6af2cbe6e9a0e764ca6128e732e8792bc38193687e697884aea

Contents?: true

Size: 366 Bytes

Versions: 17

Compression:

Stored size: 366 Bytes

Contents

namespace :landable do
  namespace :templates do
    desc 'Publish Any Templates'
    task publish: :environment do
      Landable::Template.find_each do |template|
        template.publish! author: Landable::Author.find_or_create_by(username: 'TrogdorAdmin', email: 'trogdoradming@example.com', first_name: 'Marley', last_name: 'Pants')
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
landable-1.14.0 lib/tasks/landable/template.rake
landable-1.13.2 lib/tasks/landable/template.rake
landable-1.13.1 lib/tasks/landable/template.rake
landable-1.12.3 lib/tasks/landable/template.rake
landable-1.12.2 lib/tasks/landable/template.rake
landable-1.12.1 lib/tasks/landable/template.rake
landable-1.11.1 lib/tasks/landable/template.rake
landable-1.11.0 lib/tasks/landable/template.rake
landable-1.10.0.rc2 lib/tasks/landable/template.rake
landable-1.10.0.rc1 lib/tasks/landable/template.rake
landable-1.9.2 lib/tasks/landable/template.rake
landable-1.9.1 lib/tasks/landable/template.rake
landable-1.9.0 lib/tasks/landable/template.rake
landable-1.9.0.rc2 lib/tasks/landable/template.rake
landable-1.9.0.rc1 lib/tasks/landable/template.rake
landable-1.8.0 lib/tasks/landable/template.rake
landable-1.7.1.rc1 lib/tasks/landable/template.rake