brightcontent-attachments 2.0.24 → 2.0.25

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brightcontent-attachments (2.0.24)
5
- brightcontent-core (= 2.0.24)
4
+ brightcontent-attachments (2.0.25)
5
+ brightcontent-core (= 2.0.25)
6
6
  jquery-fileupload-rails
7
7
  paperclip
8
8
 
9
9
  PATH
10
10
  remote: ../core
11
11
  specs:
12
- brightcontent-core (2.0.24)
12
+ brightcontent-core (2.0.25)
13
13
  bcrypt-ruby
14
14
  bootstrap-wysihtml5-rails
15
15
  has_scope
@@ -1,7 +1,5 @@
1
1
  module Brightcontent
2
2
  class Attachment < ActiveRecord::Base
3
- attr_accessible :attachable_id, :attachable_type, :asset
4
-
5
3
  belongs_to :attachable, polymorphic: true, :inverse_of => :attachments
6
4
  has_attached_file :asset, :styles => lambda {|attachment| attachment.instance.attachment_styles }
7
5
  before_post_process :resize_images
@@ -1,5 +1,4 @@
1
1
  class Blog < ActiveRecord::Base
2
- attr_accessible :body, :name, :featured
3
2
  include Brightcontent::Attachable
4
3
 
5
4
  def attachment_styles
@@ -47,7 +47,7 @@ module Dummy
47
47
  # This will create an empty whitelist of attributes available for mass-assignment for all models
48
48
  # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
49
49
  # parameters by using an attr_accessible or attr_protected declaration.
50
- config.active_record.whitelist_attributes = true
50
+ config.active_record.whitelist_attributes = false
51
51
 
52
52
  # Enable the asset pipeline
53
53
  config.assets.enabled = true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightcontent-attachments
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.24
4
+ version: 2.0.25
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 2.0.24
21
+ version: 2.0.25
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 2.0.24
29
+ version: 2.0.25
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: paperclip
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -238,7 +238,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
238
238
  version: '0'
239
239
  segments:
240
240
  - 0
241
- hash: -822662674344741609
241
+ hash: -364850917389981507
242
242
  required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  none: false
244
244
  requirements:
@@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
247
247
  version: '0'
248
248
  segments:
249
249
  - 0
250
- hash: -822662674344741609
250
+ hash: -364850917389981507
251
251
  requirements: []
252
252
  rubyforge_project:
253
253
  rubygems_version: 1.8.24