gluttonberg/app/models/page.rb
# Checks to see if this page has been set as the homepage. If it has, we 
# then go and 
Checks to see if this page has been set as the homepage. If it has, we
then go and
Checks to see if this page has been set as the homepage . If it has we then go and
def check_for_home_update
      if @home_updated && @home_updated == true
        previous_home = Page.first(:home => true, :id.not => id)
        previous_home.update_attributes(:home => false) if previous_home
      end
    end
def check_for_home_update if @home_updated && @home_updated == true previous_home = Page . first ( :home => true , :id . not => id ) previous_home . update_attributes ( :home => false ) if previous_home end end
Checks to see if this page has been set as the homepage.
Checks to see if this page has been set as the homepage .