Sha256: 5627166ecc89b06bced79debeb23b38d05a58f9e40e7b6aff5069a72d0147a94

Contents?: true

Size: 393 Bytes

Versions: 1

Compression:

Stored size: 393 Bytes

Contents

module ActionView
  class Base
    
  	def rich_cms
  	  render :file => File.join(File.dirname(__FILE__), "..", "..", "..", "..", "app", "views", "rich_cms.html.erb") if session[:rich_cms].try(:fetch, :display, nil)
  	end
  	
  	def link(name, options = nil)
  	  options = {:class => options || name.underscore} unless options.is_a?(Hash)
  	  link_to name, "#", options
  	end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rich_cms-1.0.0 lib/rich/cms/actionpack/action_view/base.rb