Skip to content

Commit

Permalink
removing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
banane committed Feb 1, 2010
1 parent 549be27 commit 8658c50
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion app/helpers/admin/pages_helper.rb
Expand Up @@ -23,7 +23,6 @@ def homepage
end

def status_to_display
#scheduler status may confuse folks, show published for scheduled
@page.status_id = 100 if @page.status_id == 90
@display_status = []
Status.find_all.each { |s| @display_status << [s.name, s.id] unless s.name == 'Scheduled' }
Expand Down
6 changes: 0 additions & 6 deletions app/models/page.rb
Expand Up @@ -253,12 +253,6 @@ def valid_class_name
def attributes_protected_by_default
super - [self.class.inheritance_column]
end

# def update_published_at
# self[:published_at] = Time.now if (published? and !published_at)
# self[:published_at] = Time.now if (self[:status_id] == 90 and published_at <= Time.now)
# true
# end

def update_status
self[:published_at] = Time.now if self[:status_id] == 100 && self[:published_at] == nil
Expand Down

0 comments on commit 8658c50

Please sign in to comment.