Sha256: 5674a7abd3d5c3a045abb6b24217a08c9f5a61407742cb4e0ab2d1d27cb00ce0

Contents?: true

Size: 319 Bytes

Versions: 18

Compression:

Stored size: 319 Bytes

Contents

# encoding: UTF-8


class ProjectImage < Piece
  field :title

  field :image do
  	size :thumbnail do
      width 100
    end
  end

  # must be non-interpolated '' or %q{} or:
#   template <<-'HTML'
#   <li><a href="#{image.original.value}"><img src="#{image.thumbnail.src}" alt="#{title}" /></a></li>'
#   HTML

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta10 test/fixtures/example_application/schema/project_image.rb
spontaneous-0.2.0.beta9 test/fixtures/example_application/schema/project_image.rb
spontaneous-0.2.0.beta8 test/fixtures/example_application/schema/project_image.rb
spontaneous-0.2.0.beta7 test/fixtures/example_application/schema/project_image.rb
spontaneous-0.2.0.beta6 test/fixtures/example_application/schema/project_image.rb
spontaneous-0.2.0.beta5 test/fixtures/example_application/schema/project_image.rb
spontaneous-0.2.0.beta4 test/fixtures/example_application/schema/project_image.rb
spontaneous-0.2.0.beta3 test/fixtures/example_application/schema/project_image.rb
spontaneous-0.2.0.beta2 test/fixtures/example_application/schema/project_image.rb
spontaneous-0.2.0.beta1 test/fixtures/example_application/schema/project_image.rb
spontaneous-0.2.0.alpha7 test/fixtures/example_application/schema/project_image.rb
spontaneous-0.2.0.alpha6 test/fixtures/example_application/schema/project_image.rb
spontaneous-0.2.0.alpha5 test/fixtures/example_application/schema/project_image.rb
spontaneous-0.2.0.alpha4 test/fixtures/example_application/schema/project_image.rb
spontaneous-0.2.0.alpha3 test/fixtures/example_application/schema/project_image.rb
spontaneous-0.2.0.alpha2 test/fixtures/example_application/schema/project_image.rb
spontaneous-0.2.0.alpha1 test/fixtures/example_application/schema/project_image.rb
spontaneous-0.1.0.alpha1 test/fixtures/example_application/schema/project_image.rb