This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Namespace | |
class Address < ActiveRecord::Base | |
include Namespace::AddressMethods | |
end | |
end | |
=== | |
module Namespace | |
class MailingAddress < ActiveRecord::Base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'work_queue' | |
wq = WorkQueue.new(5) | |
i = 1 | |
%w{foo bar baz bun}.each do |file| | |
i2 = i | |
wq.enqueue_b do | |
#move file to another directory | |
ImportFile.new(file, i2).run | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require ['media-uploader'], (MediaUploader) -> | |
class Rise.Views.Teach.Lessons.UploadContentModal extends MediaUploader.UploadModal | |
el: '#upload-modal' | |
FILE_TYPES: | |
'Content::Document': ['pdf'] | |
'Content::Media': ['video', 'audio'] | |
initialize: -> | |
setDefaults() |