Skip to content

Commit

Permalink
Supply blank comment on no image
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerry Gleason committed Sep 23, 2012
1 parent 0205a2f commit dc6505a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/packs/type/file_and_image_pack.rb
Expand Up @@ -2,7 +2,7 @@ class Wagn::Renderer

define_view :core, :type=>'image' do |args|
handle_source args do |source|
image_tag source
source == 'missing' ? "<!-- image missing #{@card.name} -->" : image_tag(source)
end
end

Expand Down
1 change: 1 addition & 0 deletions lib/wagn/model/attach.rb
Expand Up @@ -94,6 +94,7 @@ def before_post_attach
def self.included(base)
base.class_eval do
has_attached_file :attach, :preserve_files=>true,
:default_url => "missing",
:url => ":base_url/:basename-:size:revision_id.:extension",
:path => ":local/:card_id/:size:revision_id.:extension",
:styles => { :icon => '16x16#', :small => '75x75',
Expand Down

0 comments on commit dc6505a

Please sign in to comment.