rails_wordpress 0.0.7 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50a6a12a900afa83551c391d22194855e8c0a46d
4
- data.tar.gz: 3a0a52b9fc8d7860cced26544cd151da1b096c2b
3
+ metadata.gz: 418ae80d60dbcbb1dd6b14f0044103542aa240e7
4
+ data.tar.gz: 7a9fc2d46835f61c191932d2dbe61b9e86609848
5
5
  SHA512:
6
- metadata.gz: 4b131cbb55bd43d5d527d9b94cd31315610f16f1b21125558b19fff70a347c0e5ff81d855b084db831c82a3cff3236a9a27e3cd33be35ac097052704152d9fb0
7
- data.tar.gz: 92801f0f3daa961570d4a2dfef94fc5c6ef64d0df786abb823a4db8c8012f330a746c0c64a64294af56677f0454e5105a3423043ce1afa6854a903a86aa82639
6
+ metadata.gz: ca99c8da8183d6d188d746a95caba4dddb0c657af9b2d74674f66bbd5ab374d73ac64dda71ee57ca18182683cced46aea9c7e35b958f74f4a39023bfe7a20772
7
+ data.tar.gz: 63caece42bf7d16e6c943a4d881cf99a63d63b008aa978a6c3eebba3d3310143710dec5bb973c0f66bfd8e664696ac99d8b480885f9b118389d5c58e061f65d4
@@ -1,7 +1,5 @@
1
1
  module Wordpress
2
2
  class Attachment < WpPost
3
- def default_mime_type
4
- 'image/png'
5
- end
3
+ has_many :metas, class_name: "Attachmentmeta", foreign_key: "post_id"
6
4
  end
7
5
  end
@@ -0,0 +1,7 @@
1
+ module Wordpress
2
+ class Attachmentmeta < WpBase
3
+ self.table_name = 'wp_postmeta'
4
+
5
+ belongs_to :attachment, foreign_key: "post_id", class_name: "Attachment"
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module Wordpress
2
- VERSION = "0.0.7"
2
+ VERSION = "0.1.1"
3
3
  end