class SubscriptionObserver < ActiveRecord::Observer

  def after_create(subscription)
    'echo "Utworzono nową subskrypcję (id=#{subscription.id})" | 
       mail -s ''Nowa subskrypcja!' odbiorca@przyklad.pl'
  end
end