Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
Remove log remnants.
Browse files Browse the repository at this point in the history
  • Loading branch information
seven1m committed Jun 24, 2013
1 parent 5cc2df7 commit 4df4c71
Show file tree
Hide file tree
Showing 31 changed files with 0 additions and 513 deletions.
63 changes: 0 additions & 63 deletions app/controllers/administration/log_items_controller.rb

This file was deleted.

28 changes: 0 additions & 28 deletions app/helpers/administration/log_items_helper.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/models/album.rb
Expand Up @@ -8,8 +8,6 @@ class Album < ActiveRecord::Base

attr_accessible :name, :description, :is_public

acts_as_logger LogItem

validates_presence_of :name
validates_uniqueness_of :name, :scope => [:site_id, :person_id]

Expand Down
2 changes: 0 additions & 2 deletions app/models/comment.rb
Expand Up @@ -17,8 +17,6 @@ def name
"Comment on #{on ? on.name : '?'}"
end

acts_as_logger LogItem

after_create :update_stream_items_on_create

def update_stream_items_on_create
Expand Down
1 change: 0 additions & 1 deletion app/models/family.rb
Expand Up @@ -12,7 +12,6 @@ class Family < ActiveRecord::Base
attr_accessible :legacy_id, :barcode_id, :alternate_barcode_id, :people_attributes, :if => Proc.new { Person.logged_in and Person.logged_in.admin?(:edit_profiles) }

has_attached_file :photo, PAPERCLIP_PHOTO_OPTIONS
acts_as_logger LogItem

sharable_attributes :mobile_phone, :address, :anniversary

Expand Down
2 changes: 0 additions & 2 deletions app/models/friendship.rb
Expand Up @@ -9,8 +9,6 @@ class Friendship < ActiveRecord::Base
validates_presence_of :friend_id
validates_uniqueness_of :friend_id, :scope => [:site_id, :person_id]

acts_as_logger LogItem

attr_accessor :skip_mirror

before_create :mirror_friendship
Expand Down
1 change: 0 additions & 1 deletion app/models/group.rb
Expand Up @@ -50,7 +50,6 @@ def validate_self_referencing_parents_of
end

has_attached_file :photo, PAPERCLIP_PHOTO_OPTIONS
acts_as_logger LogItem

scope :checkin_destinations, :include => :group_times, :conditions => ['group_times.checkin_time_id is not null'], :order => 'group_times.ordering'

Expand Down
117 changes: 0 additions & 117 deletions app/models/log_item.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/models/membership.rb
Expand Up @@ -7,8 +7,6 @@ class Membership < ActiveRecord::Base

scope_by_site_id

acts_as_logger LogItem

def family; person.family; end

before_create :generate_security_code
Expand Down
2 changes: 0 additions & 2 deletions app/models/message.rb
Expand Up @@ -33,8 +33,6 @@ class Message < ActiveRecord::Base
end
end

acts_as_logger LogItem

def name
if self.to
"Private Message to #{to.name rescue '[deleted]'}"
Expand Down
1 change: 0 additions & 1 deletion app/models/news_item.rb
Expand Up @@ -4,7 +4,6 @@ class NewsItem < ActiveRecord::Base
belongs_to :site

scope_by_site_id
acts_as_logger LogItem

attr_accessible :title, :body

Expand Down
2 changes: 0 additions & 2 deletions app/models/note.rb
Expand Up @@ -8,8 +8,6 @@ class Note < ActiveRecord::Base

attr_accessible :title, :body

acts_as_logger LogItem

validates_presence_of :body

def name; title; end
Expand Down
1 change: 0 additions & 1 deletion app/models/page.rb
Expand Up @@ -8,7 +8,6 @@ class Page < ActiveRecord::Base
belongs_to :site

scope_by_site_id
acts_as_logger LogItem

attr_accessible :slug, :title, :body, :parent_id, :parent, :path, :published, :navigation, :raw

Expand Down
2 changes: 0 additions & 2 deletions app/models/person.rb
Expand Up @@ -55,8 +55,6 @@ def thumbnails
acts_as_password
has_attached_file :photo, PAPERCLIP_PHOTO_OPTIONS

acts_as_logger LogItem

validates_presence_of :first_name, :last_name
validates_length_of :password, :minimum => 5, :allow_nil => true, :if => Proc.new { Person.logged_in }
validates_confirmation_of :password, :if => Proc.new { Person.logged_in }
Expand Down
1 change: 0 additions & 1 deletion app/models/picture.rb
Expand Up @@ -7,7 +7,6 @@ class Picture < ActiveRecord::Base
scope_by_site_id

has_attached_file :photo, PAPERCLIP_PHOTO_OPTIONS
acts_as_logger LogItem

validates_presence_of :album_id
validates_attachment_size :photo, :less_than => PAPERCLIP_PHOTO_MAX_SIZE
Expand Down
2 changes: 0 additions & 2 deletions app/models/prayer_request.rb
Expand Up @@ -7,8 +7,6 @@ class PrayerRequest < ActiveRecord::Base

attr_accessible :request, :answer, :answered_at

acts_as_logger LogItem

validates_presence_of :request, :group_id, :person_id

def name
Expand Down
2 changes: 0 additions & 2 deletions app/models/prayer_signup.rb
Expand Up @@ -4,8 +4,6 @@ class PrayerSignup < ActiveRecord::Base

scope_by_site_id

acts_as_logger LogItem

validates_uniqueness_of :start, :scope => [:site_id, :person_id]
validates_presence_of :start

Expand Down
1 change: 0 additions & 1 deletion app/models/publication.rb
Expand Up @@ -7,7 +7,6 @@ class Publication < ActiveRecord::Base
attr_accessible :name, :description, :file

has_attached_file :file, PAPERCLIP_FILE_OPTIONS
acts_as_logger LogItem

validates_presence_of :name
validates_uniqueness_of :name, :scope => :site_id
Expand Down
2 changes: 0 additions & 2 deletions app/models/relationship.rb
Expand Up @@ -17,8 +17,6 @@ class Relationship < ActiveRecord::Base
end
end

acts_as_logger LogItem

def name_or_other
name == 'other' ? other_name : I18n.t(name, :scope => 'relationships.names')
end
Expand Down
2 changes: 0 additions & 2 deletions app/models/tag.rb
Expand Up @@ -9,8 +9,6 @@ class Tag < ActiveRecord::Base

scope_by_site_id

acts_as_logger LogItem

cattr_accessor :destroy_unused
self.destroy_unused = false

Expand Down
1 change: 0 additions & 1 deletion app/models/verse.rb
Expand Up @@ -7,7 +7,6 @@ class Verse < ActiveRecord::Base
belongs_to :site

scope_by_site_id
acts_as_logger LogItem
acts_as_taggable

def admin?(person)
Expand Down
16 changes: 0 additions & 16 deletions app/views/administration/log_items/_details.erb

This file was deleted.

0 comments on commit 4df4c71

Please sign in to comment.