This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
barleysodas/lib/tasks/load_permissions.rake

9 lines
256 B
Ruby
Raw Normal View History

namespace :barleysodas do
desc "Loads permission models from the test fixture file"
task :load_permissions => :environment do
YAML::load_file("#{RAILS_ROOT}/test/fixtures/permissions.yml").each do |k,p|
Permission.create(p)
end
end
end