has_images:将图像和画廊添加到您的 ActiveRecord 模型

时间:2021-06-29 21:16:23
【文件属性】:
文件名称:has_images:将图像和画廊添加到您的 ActiveRecord 模型
文件大小:16KB
文件格式:ZIP
更新时间:2021-06-29 21:16:23
Ruby Digineo HasImages 宝石 描述 HasImages 将图像和画廊添加到您的 ActiveRecord 模型中。 它带有以下方法: model.images # returns a list of all images model.avatar # returns the image with the avatar flag e.g. the first image model.galleries? # does this model have a gallery? model.galleries # returns a list of the models image galleries gallery.images # returns all images in a gallery image.set_avatar # sets the avatar flag on
【文件预览】:
has_images-master
----MIT-LICENSE(1KB)
----generators()
--------has_images()
----lib()
--------has_images()
--------digineo.rb(150B)
--------has_images.rb(3KB)
--------digineo()
----uninstall.rb(27B)
----has_images.gemspec(1KB)
----rails()
--------init.rb(55B)
----tasks()
--------has_images_tasks.rake(88B)
----Rakefile(568B)
----init.rb(91B)
----test()
--------test_helper.rb(2KB)
--------has_images_test.rb(1018B)
--------unit()
--------database.yml(47B)
----install.rb(25B)
----README.md(5KB)
----test.db(3KB)
----.gitignore(21B)

网友评论