Sha256: 4e15590b9e08948f50155117a1aca35848259c8067f0e354d753080daf8a47b3

Contents?: true

Size: 364 Bytes

Versions: 2

Compression:

Stored size: 364 Bytes

Contents

module Admin
  module BaseHelper
        
    def render_subnav      
      if content_for?(:subnav)
        yield(:subnav)
      elsif File.exists?(File.join(File.dirname(__FILE__),'..','..','views',params[:controller],'_subnav.erb'))
        render(:partial=> 'subnav')
      else
        render(:partial=> 'admin/shared/subnav')
      end
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
merrycms-0.1.7 app/helpers/admin/base_helper.rb
merrycms-0.1.4 app/helpers/admin/base_helper.rb