Commit f1e596fbee203b08f0195b83352f47aa37d8e970
1 parent
c49be40f
Exists in
rails5
rails5: attr_accesible
Showing
11 changed files
with
4 additions
and
19 deletions
Show diff stats
app/models/article_follower.rb
app/models/create_community.rb
app/models/email_template.rb
... | ... | @@ -2,8 +2,6 @@ class EmailTemplate < ActiveRecord::Base |
2 | 2 | |
3 | 3 | belongs_to :owner, :polymorphic => true |
4 | 4 | |
5 | - attr_accessible :template_type, :subject, :body, :owner, :name | |
6 | - | |
7 | 5 | validates_presence_of :name |
8 | 6 | |
9 | 7 | validates :name, uniqueness: { scope: [:owner_type, :owner_id] } | ... | ... |
app/models/session.rb
plugins/community_track/lib/community_track_plugin/track_list_block.rb
... | ... | @@ -7,8 +7,6 @@ class CommunityTrackPlugin::TrackListBlock < Block |
7 | 7 | settings_items :category_ids, :type => Array, :default => [] |
8 | 8 | settings_items :order, :type => :string, :default => 'hits' |
9 | 9 | |
10 | - attr_accessible :more_another_page, :category_ids, :order | |
11 | - | |
12 | 10 | def self.description |
13 | 11 | _('Track List') |
14 | 12 | end | ... | ... |
plugins/push_notification/lib/device_token.rb
plugins/push_notification/lib/notification_settings.rb
plugins/push_notification/lib/notification_subscription.rb
plugins/sniffer/lib/ext/profile.rb
... | ... | @@ -10,9 +10,6 @@ class Profile |
10 | 10 | }, through: :sniffer_opportunities, source: :product_category, class_name: 'ProductCategory' |
11 | 11 | |
12 | 12 | attr_accessor :sniffer_interested_product_category_string_ids |
13 | - descendants.each do |k| | |
14 | - k.attr_accessible :sniffer_interested_product_category_string_ids | |
15 | - end | |
16 | 13 | |
17 | 14 | def sniffer_interested_product_category_string_ids |
18 | 15 | '' | ... | ... |
plugins/video/lib/video_plugin/video.rb
... | ... | @@ -16,8 +16,6 @@ class VideoPlugin::Video < Article |
16 | 16 | settings_items :video_thumbnail_height, :type=> :integer |
17 | 17 | settings_items :video_duration, :type=> :integer, :default => 0 |
18 | 18 | |
19 | - attr_accessible :video_url | |
20 | - | |
21 | 19 | before_save :fill_video_properties |
22 | 20 | |
23 | 21 | def self.type_name |
... | ... | @@ -35,14 +33,14 @@ class VideoPlugin::Video < Article |
35 | 33 | def self.description |
36 | 34 | _('Display embedded videos.') |
37 | 35 | end |
38 | - | |
36 | + | |
39 | 37 | def is_youtube? |
40 | 38 | VideoPlugin::Video.is_youtube?(self.video_url) |
41 | 39 | end |
42 | 40 | |
43 | 41 | def is_vimeo? |
44 | 42 | VideoPlugin::Video.is_vimeo?(self.video_url) |
45 | - end | |
43 | + end | |
46 | 44 | |
47 | 45 | include ActionView::Helpers::TagHelper |
48 | 46 | def to_html(options={}) | ... | ... |
plugins/video/lib/video_plugin/video_gallery_block.rb