mirror of
https://github.com/Growstuff/growstuff.git
synced 2025-12-24 01:57:46 -05:00
this seems to be intended by the models having slugs (added about 7 years ago) but the routes weren't using them
14 lines
352 B
Ruby
14 lines
352 B
Ruby
# frozen_string_literal: true
|
|
|
|
class DataController < ApplicationController
|
|
abstract
|
|
before_action :authenticate_member!, except: %i(index show)
|
|
load_and_authorize_resource id_param: :slug
|
|
|
|
after_action :expire_homepage, only: %i(create update destroy)
|
|
|
|
respond_to :html, :json
|
|
respond_to :csv, :rss, only: [:index]
|
|
responders :flash
|
|
end
|