Sha256: c1a4187d8ade7e9fa60ef1cac9197b57799022fc2de4d84e59e67446ec3c5e78

Contents?: true

Size: 1.37 KB

Versions: 10

Compression:

Stored size: 1.37 KB

Contents

module Repres::Bootstrap::ApplicationHelper

  #extend Repres::Bootstrap::FormHelper

  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

10 entries across 10 versions & 1 rubygems

Version Path
repres-bootstrap-1.7 app/helpers/repres/bootstrap/application_helper.rb
repres-bootstrap-1.6 app/helpers/repres/bootstrap/application_helper.rb
repres-bootstrap-1.5.2 app/helpers/repres/bootstrap/application_helper.rb
repres-bootstrap-1.5.1 app/helpers/repres/bootstrap/application_helper.rb
repres-bootstrap-1.5 app/helpers/repres/bootstrap/application_helper.rb
repres-bootstrap-1.4 app/helpers/repres/bootstrap/application_helper.rb
repres-bootstrap-1.3.2 app/helpers/repres/bootstrap/application_helper.rb
repres-bootstrap-1.3.1 app/helpers/repres/bootstrap/application_helper.rb
repres-bootstrap-1.3 app/helpers/repres/bootstrap/application_helper.rb
repres-bootstrap-1.2 app/helpers/repres/bootstrap/application_helper.rb