Skip to content

Commit

Permalink
Cleaning up a few odds and ends
Browse files Browse the repository at this point in the history
  • Loading branch information
qrush committed Oct 10, 2008
1 parent 7730b3c commit 57c431c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/models/feed.rb
Expand Up @@ -18,7 +18,7 @@ def types
# Loading all of the subclasses so we can have a list of the various types.
Dir["#{RAILS_ROOT}/app/models/feeds/*.rb"].each { |f| require_dependency f }

self.subclasses.collect(&:to_s)
self.subclasses.collect(&:to_s).sort
end

def entries_become(entry_type, &block)
Expand Down
12 changes: 1 addition & 11 deletions app/models/feeds/github.rb
@@ -1,16 +1,6 @@
class Github < Feed

entries_become :gists
=begin
def refresh!
entries.each do |entry|
p entry
tweet = tweets.build :permalink => entry.urls.first, :content => entry.content.gsub(/\A\w*:?\s/, '')
tweet.created_at = entry.try(:date_published)
tweet.save ? tweet : tweet.destroy
end
end
=end

def refresh!
entries.each do |entry|
Expand All @@ -24,4 +14,4 @@ def refresh!
end


end
end
1 change: 1 addition & 0 deletions public/stylesheets/application.css
Expand Up @@ -530,6 +530,7 @@ label textarea {
font-family: Georgia, Times, serif;
padding: 0 1em 0 2.3em;
margin-bottom: 0.5em;
min-height: 50px;
}

.gist cite {
Expand Down

0 comments on commit 57c431c

Please sign in to comment.