【文件属性】:
文件名称:has-imgix-attachment
文件大小:13KB
文件格式:ZIP
更新时间:2021-06-14 03:16:25
Ruby
有-imgix-附件
has-imgix-attachment 允许您通过模型定义的属性更轻松地使用 API,以便于检索。
安装
将此行添加到应用程序的 Gemfile 中:
gem 'has-imgix-attachment'
然后执行:
$ bundle
模型配置
要将 imgix 添加到您的模型,您只需在模型上调用has-imgix-attachment方法。
class Post < ActiveRecord xss=removed> "imgix-subdomain" ,
:default => "default.png" ,
:prefix => "photos" ,
:styles => {
:thumbnail => {
【文件预览】:
has-imgix-attachment-master
----.gitignore(87B)
----.rspec(31B)
----bin()
--------setup(115B)
--------console(330B)
----.travis.yml(30B)
----CODE_OF_CONDUCT.md(1KB)
----LICENSE.txt(1KB)
----spec()
--------support()
--------spec_helper.rb(721B)
--------imgix_spec.rb(3KB)
----README.md(3KB)
----lib()
--------imgix()
--------imgix.rb(258B)
----Gemfile(90B)
----Rakefile(28B)