Sha256: fb606ad960bf080bef163bdeeb9b103c295eca56ca4f18ff866d49240af82f92

Contents?: true

Size: 293 Bytes

Versions: 3

Compression:

Stored size: 293 Bytes

Contents

module CMS
  module JavascriptHelper
    def cms_data_js(name, data = true, options = {})
      { "data-js-#{name}" => data.to_json }.merge(options)
    end

    def cms_data_js_html(name, data = true, options = {})
      CMS.options_to_html cms_data_js(name, data, options)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_admin_cms-0.1.1 app/helpers/cms/javascript_helper.rb
rails_admin_cms-0.0.9 app/helpers/cms/javascript_helper.rb
rails_admin_cms-0.0.7 app/helpers/cms/javascript_helper.rb