Sha256: 51952476d9f3d9c9470e631e60a2b1d314c43a66bcd535379588c09394d7c7e6

Contents?: true

Size: 461 Bytes

Versions: 3

Compression:

Stored size: 461 Bytes

Contents

require 'active_record/fixtures'
namespace :enju_message do
  desc "create initial records for enju_message"
  task :setup => :environment do
    Dir.glob(Rails.root.to_s + '/db/fixtures/enju_message/*.yml').each do |file|
      ActiveRecord::Fixtures.create_fixtures('db/fixtures/enju_message', File.basename(file, '.*'))
    end
  end

  desc "Send messages"
  task :send => :environment do
    MessageRequest.send_messages if defined?(EnjuMessage)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enju_message-0.1.14.pre14 lib/tasks/enju_message_tasks.rake
enju_message-0.1.14.pre13 lib/tasks/enju_message_tasks.rake
enju_message-0.1.14.pre12 lib/tasks/enju_message_tasks.rake