Sha256: 31339b38167e3f37ade851aa19714568419088a8ff0ccbdebb6f8c0151e46809

Contents?: true

Size: 170 Bytes

Versions: 4

Compression:

Stored size: 170 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_admin_cms-0.0.6 app/helpers/cms/javascript_helper.rb
rails_admin_cms-0.0.5 app/helpers/cms/javascript_helper.rb
rails_admin_cms-0.0.4 app/helpers/cms/javascript_helper.rb
rails_admin_cms-0.0.3 app/helpers/cms/javascript_helper.rb