Skip to content

Commit

Permalink
backstage config controller
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Jul 14, 2024
1 parent e3eae9b commit c4cac2c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion backstage/lib/backstage/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def initialize(name, options = {})
@scopes = []
@filterable_fields = []
@custom_actions = []
@controller_name = nil # || "backstage/#{name.to_s.pluralize}"
@controller_name = options[:controller] || "backstage/#{name.to_s.pluralize}"
# Backstage::Config.ensure_controller_exists(name)
end

Expand Down
2 changes: 0 additions & 2 deletions config/initializers/backstage_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@

resource :posts do

controller :default

column :id
column :title
column :author do |post, view|
Expand Down

0 comments on commit c4cac2c

Please sign in to comment.