Class: Snippet

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

Instance Method Summary collapse

Instance Method Details

#after_initializeObject



18
19
20
# File 'app/models/snippet.rb', line 18

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