Remove duplication rendering comments
We were using the same code 5 times, with the only slight variation being the extra heading in the debates section.
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
module HasOrders
|
||||
extend ActiveSupport::Concern
|
||||
attr_reader :valid_orders, :current_order
|
||||
|
||||
included do
|
||||
helper_method :valid_orders, :current_order
|
||||
end
|
||||
|
||||
class_methods do
|
||||
def has_orders(valid_orders, *args)
|
||||
|
||||
Reference in New Issue
Block a user