Skip to content

Commit

Permalink
add upload sample
Browse files Browse the repository at this point in the history
  • Loading branch information
barthezslavik committed Dec 23, 2012
1 parent 73b49fb commit c79d924
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 72 deletions.
3 changes: 0 additions & 3 deletions app/assets/stylesheets/main.css.sass
Expand Up @@ -34,6 +34,3 @@ pre
font-size: 16px
text-decoration: none
font-weight: bold
img
overflow: hidden
height: 150px
69 changes: 0 additions & 69 deletions app/assets/stylesheets/scaffolds.css.scss

This file was deleted.

2 changes: 2 additions & 0 deletions app/models/comment.rb
@@ -1,3 +1,5 @@
class Comment < ActiveRecord::Base
attr_accessible :commentable_id, :commentable_type, :content

belongs_to :commentable, :polymorphic => true
end
1 change: 1 addition & 0 deletions app/models/sample.rb
Expand Up @@ -3,4 +3,5 @@ class Sample < ActiveRecord::Base
attr_accessible :description, :name, :screenshot, :demo, :category_id

belongs_to :category
has_many :comments, :as => :commentable
end
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c79d924

Please sign in to comment.