Changeset 1338
- Timestamp:
- 08/09/08 11:21:38 (5 months ago)
- Files:
-
- trunk/app/controllers/public_controller.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/app/controllers/public_controller.rb
r1334 r1338 6 6 append_view_path "#{RAILS_ROOT}/templates" 7 7 8 before_filter :assigns_show 8 before_filter :assigns_show, :create_user_google_analytics_account 9 9 10 10 def welcome … … 93 93 end 94 94 95 def create_user_google_analytics_account 96 user_tracker_id = (@show.host and @show.host.google_analytics_tracker_id) 97 98 unless user_tracker_id.blank? 99 request.google_analytics_account = Rubaidh::GoogleAnalytics.new(user_tracker_id) 100 end 101 end 102 95 103 def find_show(slug = nil) 96 104 @show ||= Show.find_by_slug(slug)
