Sha256: 9dff3c766dbc7e1cd9d90caf84fd57601dbf43330467d1c183eb637bc6659ff3

Contents?: true

Size: 1.33 KB

Versions: 2

Compression:

Stored size: 1.33 KB

Contents

module Repres::Bootstrap::ApplicationHelper

  def bootstrap_form_field(options = {})
    warn 'Repres::Bootstrap::ApplicationHelper#bootstrap_form_field is deprecated and will be removed in the future, please use Repres::Bootstrap::FormHelper#bootstrap_form_field instead.'
    #super options
    render partial: 'repres/bootstrap/form_field', locals: { options: options }
  end

  def bootstrap_form_select_box(options = {})
    warn 'Repres::Bootstrap::ApplicationHelper#bootstrap_form_select_box is deprecated and will be removed in the future, please use Repres::Bootstrap::FormHelper#bootstrap_form_select_box instead.'
    #super options
    render partial: 'repres/bootstrap/form_select_box', locals: { options: options }
  end

  def bootstrap_script(options = {})
    render partial: 'repres/bootstrap/script', locals: { options: options }
  end

  def bootstrap_style(options = {})
    render partial: 'repres/bootstrap/style', locals: { options: options }
  end

  #class << self
  #  deprecate bootstrap_form_field:      :'Repres::Bootstrap::ApplicationHelper.bootstrap_form_field',      deprecator: ActiveSupport::Deprecation.new('2.0', 'repres-bootstrap')
  #  deprecate bootstrap_form_select_box: :'Repres::Bootstrap::ApplicationHelper.bootstrap_form_select_box', deprecator: ActiveSupport::Deprecation.new('2.0', 'repres-bootstrap')
  #end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
repres-bootstrap-1.9 app/helpers/repres/bootstrap/application_helper.rb
repres-bootstrap-1.8 app/helpers/repres/bootstrap/application_helper.rb