Class: PagePart

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/page_part.rb

Instance Method Summary collapse

Instance Method Details

#set_default_filterObject



19
20
21
# File 'app/models/page_part.rb', line 19

def set_default_filter
  self.filter_id ||= Radiant::Config['defaults.page.filter'] if new_record?
end