redditor 0.1.8 → 0.1.9

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: e99087ee63a020c524a89e130563cb9ccd0d385d
4
- data.tar.gz: cdce4582c8017f4924077c39dae66252adb80da4
3
+ metadata.gz: e068df1a9789fe7f9258f5826f7f875bac8e5441
4
+ data.tar.gz: 9e1dba5675f9156aff64c7100882a69a6860fde7
5
5
  SHA512:
6
- metadata.gz: 5005eb6afcfdf411a329a31d0eb5160ea660be2568ecaa17daa79c2bbceca28e7b19601665ee5a40a82d834b08324b63a796f14c692b087522c8d0a85ad1c0e3
7
- data.tar.gz: 63e2efa152d84d7be56faa71e57746d9ef037c2f23193a48580f1f1622e495aea7451e6063fdfab5fe5495d0c6b844b67a5af66030d8b8f95fd1a818e43f7b2a
6
+ metadata.gz: c5d2c605852ca1556028a85a57bae097fbdcdbb0eacd5d3d14a82e57ca24bd09bda5a4ca34cf95e151928f6a458d1784e41465e96e42fc6cbabf17be875c2a27
7
+ data.tar.gz: e5fc8b7f6a1580863d7e125f4d90e62bcb392720673a2306117c3f9893bd110e90c25d42e534888c13f8ef77fc48e6486a70c5b0a37b7b50992ef66bfde61928
@@ -6,16 +6,16 @@ module Redditor
6
6
 
7
7
  # attr_accessible :pageable_id, :pageable_type, :metakey, :metadesc, :text_blocks_attributes, :video_blocks_attributes, :images_attributes, :slider_blocks_attributes
8
8
 
9
- belongs_to :pageable, :polymorphic => true
10
- has_many :text_blocks, :class_name => "Redditor::TextBlock"
11
- has_many :video_blocks, :class_name => "Redditor::VideoBlock"
12
- has_many :images, :as => :imageable
13
- has_many :slider_blocks, :class_name => "Redditor::SliderBlock"
9
+ belongs_to :pageable, polymorphic: true
10
+ has_many :text_blocks, class_name: "Redditor::TextBlock"
11
+ has_many :video_blocks, class_name: "Redditor::VideoBlock"
12
+ has_many :images, as: :imageable, class_name: "Redditor::Image"
13
+ has_many :slider_blocks, class_name: "Redditor::SliderBlock"
14
14
 
15
- accepts_nested_attributes_for :text_blocks, :allow_destroy => true
16
- accepts_nested_attributes_for :video_blocks, :allow_destroy => true
17
- accepts_nested_attributes_for :slider_blocks, :allow_destroy => true
18
- accepts_nested_attributes_for :images, :allow_destroy => true
15
+ accepts_nested_attributes_for :text_blocks, allow_destroy: true
16
+ accepts_nested_attributes_for :video_blocks, allow_destroy: true
17
+ accepts_nested_attributes_for :slider_blocks, allow_destroy: true
18
+ accepts_nested_attributes_for :images, allow_destroy: true
19
19
 
20
20
  def self.model_name
21
21
  ActiveModel::Name.new(self, nil, 'Page')
@@ -1,3 +1,3 @@
1
1
  module Redditor
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
data/redditor.gemspec CHANGED
@@ -25,6 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.add_dependency "rmagick"
26
26
  s.add_dependency "coffee-rails"
27
27
  s.add_dependency "jquery-rails"
28
+ # s.add_dependency 'fileapi', git: 'git@github.com:redde/fileapi.git'
28
29
 
29
30
  s.add_development_dependency 'jquery-rails'
30
31
  s.add_development_dependency 'capybara'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Bovykin