handle contribution for now-unused swf
This commit is contained in:
parent
98d908d33c
commit
9fc24a2eab
2 changed files with 12 additions and 5 deletions
|
@ -13,12 +13,16 @@ module ContributionHelper
|
|||
end
|
||||
|
||||
def contributed_item(item, adverbial)
|
||||
if item
|
||||
output do |html|
|
||||
html << 'the'
|
||||
html << link_to(item.name, item, :class => 'contributed-name')
|
||||
html << adverbial
|
||||
html << image_tag(item.thumbnail_url)
|
||||
end
|
||||
else
|
||||
"data for an item that has since been updated"
|
||||
end
|
||||
end
|
||||
|
||||
PET_TYPE_IMAGE_FORMAT = 'http://pets.neopets.com/cp/%s/1/3.png'
|
||||
|
|
3
config/environments/remote_development.rb
Normal file
3
config/environments/remote_development.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Mirror of the development environment. Designed to allow the ability to plug
|
||||
# in the production database, while still behaving like development.
|
||||
require Rails.root.join('config', 'environments', 'development')
|
Loading…
Reference in a new issue