class SubscriptionObserver < ActiveRecord::Observer
  def after_create(subscription)
    `echo "A new subscription has been created (id=#{subscription.id})" |
          mail -s 'New Subscription!' admin@example.com`
  end
end