Sha256: dfc16cfa46ded93de4bce3027fa965402e43922ecc32fc46e13a3e83b000a59f

Contents?: true

Size: 684 Bytes

Versions: 7

Compression:

Stored size: 684 Bytes

Contents

class Book < ActiveRecord::Base
  has_many :assets, :class_name => "Books::Asset"
end

module Books
  class Asset < ActiveRecord::Base
    self.table_name = "books_assets"
    acts_as_assets
  end
end

module Books
  module Assets
    class TestDoc < Books::Asset
    end
  end
end

module Books
  module Assets
    class UniqueTestDoc < Books::Asset
      include ActsAsAssets::UniqueAsset
    end
  end
end

module Books
  class Image < ActiveRecord::Base
    self.table_name = "books_assets"
    acts_as_assets :styles => {:thumb => "64x64", :medium => "128x128", :original => "800x600<"}
  end
end

module Books
  module Assets
    class TestImage < Books::Image
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
acts_as_assets-0.2.6 spec/support/book.rb
acts_as_assets-0.2.5 spec/support/book.rb
acts_as_assets-0.2.4 spec/support/book.rb
acts_as_assets-0.2.3 spec/support/book.rb
acts_as_assets-0.2.2 spec/support/book.rb
acts_as_assets-0.2.1 spec/support/book.rb
acts_as_assets-0.2.0 spec/support/book.rb