Skip to content

Commit

Permalink
alias bootstrap_text_input bootstrap_text_field
Browse files Browse the repository at this point in the history
  • Loading branch information
UweKubosch committed Dec 5, 2024
1 parent 02fd784 commit 9d348aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group 'no.datek'
version '1.0.6'
version '1.0.7'
final String JRUBY_VERSION = '9.4.8.0';

repositories {
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/ruby/form_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def text_input(object, field_name, **opts)
classes
end

def bootstrap_text_input(object, field_name, **opts)
def bootstrap_text_field(object, field_name, **opts)
classes = field_classes(object, field_name, opts.delete(:class))
hide_label = opts.delete(:hide_label) || opts.delete(:no_label)
label_key = label_key_opt(opts, field_name)
Expand Down Expand Up @@ -198,6 +198,8 @@ def bootstrap_text_input(object, field_name, **opts)
html
end

alias bootstrap_text_input bootstrap_text_field

def hidden_input(object, field_name, **opts)
id_name = opts.delete(:id) || field_name

Expand Down

0 comments on commit 9d348aa

Please sign in to comment.