Class: PagePart

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

Instance Method Summary collapse

Instance Method Details

#after_initializeObject



15
16
17
# File 'app/models/page_part.rb', line 15

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