Sha256: 4193fd6b0e48f561365fd67942348ccb8b3ee1125909389e8553266996024a52
Contents?: true
Size: 556 Bytes
Versions: 8
Compression:
Stored size: 556 Bytes
Contents
module Almanac class ApplicationController < ActionController::Base protect_from_forgery before_filter :set_current_author before_filter :set_blog before_filter do |controller| @markdown_parser = MarkdownParser.new end def set_current_author current_user ||= nil end def set_blog @blog = Almanac::Blog.first unless @blog.nil? Rakismet.key = (@blog.rakismet_key) ? @blog.rakismet_key : '' Rakismet.url = (@blog.rakismet_url) ? @blog.rakismet_url : '' end end end end
Version data entries
8 entries across 8 versions & 1 rubygems