Skip to content

Commit

Permalink
Use apipie-dsl default model descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver committed Oct 19, 2023
1 parent ee1a542 commit ed612ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ gem 'ancestry', '~> 4.0'
gem 'scoped_search', '>= 4.1.10', '< 5'
gem 'ldap_fluff', '>= 0.5.0', '< 1.0'
gem 'apipie-rails', '>= 0.8.0', '< 2'
gem 'apipie-dsl', '>= 2.2.6'
gem 'apipie-dsl', '>= 2.6.0'
# Pin rdoc to prevent updating bundled psych (https://github.com/ruby/rdoc/commit/ebe185c8775b2afe844eb3da6fa78adaa79e29a4)
# Rails 6.0 is incompatible with Psych 4, Rails 6.1 should work
gem 'rdoc', '< 6.4'
Expand Down
2 changes: 2 additions & 0 deletions config/initializers/apipie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
trans
end
config.help_layout = 'apipie_dsl/apipie_dsls/help.html.erb'
config.default_model_description = ->(model) { _("A class representing %s object") % model.model_name.singular.humanize(capitalize: false) }
config.reload_dsl = false
end

Apipie.configure do |config|
Expand Down

0 comments on commit ed612ee

Please sign in to comment.