Skip to content

Commit

Permalink
Merge pull request #24 from shivam091/0.7.2
Browse files Browse the repository at this point in the history
0.7.2
  • Loading branch information
shivam091 committed May 25, 2023
2 parents 54c824b + b22c684 commit c1e1b4e
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ You can find recent releases with docs in GitHub:

https://github.com/shivam091/rails_bootstrap_form/releases

## [0.7.2](https://github.com/shivam091/rails_bootstrap_form/compare/v0.7.1...v0.7.2) - 2023-05-25

### What's new
- Added wrapper method for `rich_text_area`.

## [0.7.1](https://github.com/shivam091/rails_bootstrap_form/compare/v0.7.0...v0.7.1) - 2023-05-24

### What's new
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
rails_bootstrap_form (0.7.1)
rails_bootstrap_form (0.7.2)
actionpack (~> 7.0)
activemodel (~> 7.0)

Expand Down
2 changes: 2 additions & 0 deletions lib/rails_bootstrap_form/inputs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module Inputs
autoload :PhoneField
autoload :RadioButton
autoload :RangeField
autoload :RichTextArea
autoload :SearchField
autoload :Select
autoload :StaticField
Expand Down Expand Up @@ -61,6 +62,7 @@ module Inputs
include PhoneField
include RadioButton
include RangeField
include RichTextArea
include SearchField
include Select
include StaticField
Expand Down
21 changes: 21 additions & 0 deletions lib/rails_bootstrap_form/inputs/rich_text_area.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- encoding: utf-8 -*-
# -*- frozen_string_literal: true -*-
# -*- warn_indent: true -*-

module RailsBootstrapForm
module Inputs
module RichTextArea
extend ActiveSupport::Concern

included do
def rich_text_area(attribute, options = {})
options[:class] = ["trix-content", options[:class]].compact.join(" ")

field_wrapper_builder(attribute, options) do
super(attribute, options)
end
end
end
end
end
end
2 changes: 1 addition & 1 deletion lib/rails_bootstrap_form/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
# -*- warn_indent: true -*-

module RailsBootstrapForm
VERSION = "0.7.1".freeze
VERSION = "0.7.2".freeze
REQUIRED_RAILS_VERSION = "~> 7.0".freeze
end
2 changes: 1 addition & 1 deletion spec/rails_bootstrap_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

RSpec.describe RailsBootstrapForm do
it "has a valid version number" do
expect(RailsBootstrapForm::VERSION).to eq("0.7.1")
expect(RailsBootstrapForm::VERSION).to eq("0.7.2")
end

it "has a valid rails version number" do
Expand Down

0 comments on commit c1e1b4e

Please sign in to comment.