diff --git a/app/models/article_follower.rb b/app/models/article_follower.rb index 598e070..57e615b 100644 --- a/app/models/article_follower.rb +++ b/app/models/article_follower.rb @@ -1,6 +1,5 @@ class ArticleFollower < ActiveRecord::Base - attr_accessible :article_id, :person_id belongs_to :article, :counter_cache => :followers_count belongs_to :person diff --git a/app/models/create_community.rb b/app/models/create_community.rb index 0ff5a6d..1473a90 100644 --- a/app/models/create_community.rb +++ b/app/models/create_community.rb @@ -17,7 +17,6 @@ class CreateCommunity < Task end settings_items :custom_values - attr_accessible :custom_values def validate self.environment.required_community_fields.each do |field| diff --git a/app/models/email_template.rb b/app/models/email_template.rb index 6554bc6..4df7835 100644 --- a/app/models/email_template.rb +++ b/app/models/email_template.rb @@ -2,8 +2,6 @@ class EmailTemplate < ActiveRecord::Base belongs_to :owner, :polymorphic => true - attr_accessible :template_type, :subject, :body, :owner, :name - validates_presence_of :name validates :name, uniqueness: { scope: [:owner_type, :owner_id] } diff --git a/app/models/session.rb b/app/models/session.rb index 57fe9dd..0cf82a5 100644 --- a/app/models/session.rb +++ b/app/models/session.rb @@ -1,7 +1,5 @@ class Session < ActiveRecord::SessionStore::Session - attr_accessible :session_id, :data - # removed and redefined on super class def self.find_by_session_id session_id super diff --git a/plugins/community_track/lib/community_track_plugin/track_list_block.rb b/plugins/community_track/lib/community_track_plugin/track_list_block.rb index 3dd0dc2..a8820dd 100644 --- a/plugins/community_track/lib/community_track_plugin/track_list_block.rb +++ b/plugins/community_track/lib/community_track_plugin/track_list_block.rb @@ -7,8 +7,6 @@ class CommunityTrackPlugin::TrackListBlock < Block settings_items :category_ids, :type => Array, :default => [] settings_items :order, :type => :string, :default => 'hits' - attr_accessible :more_another_page, :category_ids, :order - def self.description _('Track List') end diff --git a/plugins/push_notification/lib/device_token.rb b/plugins/push_notification/lib/device_token.rb index bb96fe7..61f12e1 100644 --- a/plugins/push_notification/lib/device_token.rb +++ b/plugins/push_notification/lib/device_token.rb @@ -1,6 +1,6 @@ class PushNotificationPlugin::DeviceToken < ActiveRecord::Base + belongs_to :user - attr_accessible :token, :device_name, :user after_save :check_notification_settings diff --git a/plugins/push_notification/lib/notification_settings.rb b/plugins/push_notification/lib/notification_settings.rb index 84e6518..f1ce4c5 100644 --- a/plugins/push_notification/lib/notification_settings.rb +++ b/plugins/push_notification/lib/notification_settings.rb @@ -14,7 +14,6 @@ class PushNotificationPlugin::NotificationSettings < ActiveRecord::Base } belongs_to :user - attr_accessible :user, :notifications def self.default_hash_flags default_hash_flags = {} diff --git a/plugins/push_notification/lib/notification_subscription.rb b/plugins/push_notification/lib/notification_subscription.rb index e2a18d9..a76fdd6 100644 --- a/plugins/push_notification/lib/notification_subscription.rb +++ b/plugins/push_notification/lib/notification_subscription.rb @@ -1,6 +1,6 @@ class PushNotificationPlugin::NotificationSubscription < ActiveRecord::Base + belongs_to :environment - attr_accessible :subscribers, :notification, :environment validates :notification, :uniqueness => true serialize :subscribers diff --git a/plugins/sniffer/lib/ext/profile.rb b/plugins/sniffer/lib/ext/profile.rb index c73efec..959094d 100644 --- a/plugins/sniffer/lib/ext/profile.rb +++ b/plugins/sniffer/lib/ext/profile.rb @@ -10,9 +10,6 @@ class Profile }, through: :sniffer_opportunities, source: :product_category, class_name: 'ProductCategory' attr_accessor :sniffer_interested_product_category_string_ids - descendants.each do |k| - k.attr_accessible :sniffer_interested_product_category_string_ids - end def sniffer_interested_product_category_string_ids '' diff --git a/plugins/video/lib/video_plugin/video.rb b/plugins/video/lib/video_plugin/video.rb index a6b1f19..d71fbbc 100644 --- a/plugins/video/lib/video_plugin/video.rb +++ b/plugins/video/lib/video_plugin/video.rb @@ -16,8 +16,6 @@ class VideoPlugin::Video < Article settings_items :video_thumbnail_height, :type=> :integer settings_items :video_duration, :type=> :integer, :default => 0 - attr_accessible :video_url - before_save :fill_video_properties def self.type_name @@ -35,14 +33,14 @@ class VideoPlugin::Video < Article def self.description _('Display embedded videos.') end - + def is_youtube? VideoPlugin::Video.is_youtube?(self.video_url) end def is_vimeo? VideoPlugin::Video.is_vimeo?(self.video_url) - end + end include ActionView::Helpers::TagHelper def to_html(options={}) diff --git a/plugins/video/lib/video_plugin/video_gallery_block.rb b/plugins/video/lib/video_plugin/video_gallery_block.rb index 41e6219..013c4db 100644 --- a/plugins/video/lib/video_plugin/video_gallery_block.rb +++ b/plugins/video/lib/video_plugin/video_gallery_block.rb @@ -1,7 +1,6 @@ class VideoPlugin::VideoGalleryBlock < Block settings_items :video_gallery_id, :type => :integer - attr_accessible :video_gallery_id include ActionView::Helpers include Rails.application.routes.url_helpers -- libgit2 0.21.2