Sha256: ffbd96e53930565883b7160f4a3d44cbcf3eafcf6ffb5bbe2df1c6da03dfda6e

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 Bytes

Contents

module VerySimpleCms
  module CmsHelper
    def cms_block(title)
      raw(HtmlBlock.find_by_attribute(dynamic_save_source, :title, title).try(:body))
    end

    def cms_edit_link(advanced_class=nil)
      link_to t(:edit_link, scope: [:very_simple_cms]), VerySimpleCms.editor_path + request.path, 
        class: "admin_edit_link #{advanced_class}", data: { save_url: very_simple_cms.content_url }
    end  
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
very_simple_cms-0.0.2 app/helpers/very_simple_cms/cms_helper.rb
very_simple_cms-0.0.1 app/helpers/very_simple_cms/cms_helper.rb