Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Commit

Permalink
Merge branch 'joeydonuts/master' into work
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Adams committed Nov 9, 2008
2 parents 3114ce4 + f3297a9 commit 217a51b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vendor/plugins/fckeditor/app/models/fyle.rb
@@ -0,0 +1,7 @@
class Fyle < ActiveRecord::Base
acts_as_taggable
def self.get_mime_type(file)
r=self.find_by_file_name(file);
r.mime_type
end
end
13 changes: 13 additions & 0 deletions vendor/plugins/fckeditor/db/migrate/001_create_fyles.rb
@@ -0,0 +1,13 @@
class CreateFyles < ActiveRecord::Migration
def self.up
create_table "fyles", :force => true do |t|
t.string "mime_type"
t.string "file_name"
t.timestamps
end
end

def self.end
drop_table "fyles"
end
end

0 comments on commit 217a51b

Please sign in to comment.