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

Commit

Permalink
Fixed javascript bug on file upload, added data base info on files an…
Browse files Browse the repository at this point in the history
…d tagged files.
  • Loading branch information
Ernest Ellingson committed Sep 27, 2008
1 parent 6358314 commit f3297a9
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 f3297a9

Please sign in to comment.