mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update query_patch.rb
Fixed Formatting
This commit is contained in:
@@ -22,28 +22,24 @@ module QueryPatch
|
||||
unloadable # Send unloadable so it will not be unloaded in development
|
||||
|
||||
alias_method_chain :available_columns, :hidden
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
module ClassMethods
|
||||
|
||||
end
|
||||
|
||||
|
||||
module InstanceMethods
|
||||
|
||||
def available_columns_with_hidden
|
||||
unless @available_columns
|
||||
@available_columns = available_columns_without_hidden
|
||||
|
||||
@available_columns << QueryColumn.new(:qbo_customer, :sortable => "#{QboCustomer.table_name}.name", :groupable => true, :caption => :field_qbo_customer)
|
||||
end
|
||||
@available_columns
|
||||
end
|
||||
|
||||
unless @available_columns
|
||||
@available_columns = available_columns_without_hidden
|
||||
@available_columns << QueryColumn.new(:qbo_customer, :sortable => "#{QboCustomer.table_name}.name", :groupable => true, :caption => :field_qbo_customer)
|
||||
end
|
||||
@available_columns
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# Add module to Issue
|
||||
IssueQuery.send(:include, QueryPatch)
|
||||
IssueQuery.send(:include, QueryPatch)
|
||||
|
||||
Reference in New Issue
Block a user