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,7 +22,6 @@ module QueryPatch
|
|||||||
unloadable # Send unloadable so it will not be unloaded in development
|
unloadable # Send unloadable so it will not be unloaded in development
|
||||||
|
|
||||||
alias_method_chain :available_columns, :hidden
|
alias_method_chain :available_columns, :hidden
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -33,16 +32,13 @@ module QueryPatch
|
|||||||
module InstanceMethods
|
module InstanceMethods
|
||||||
|
|
||||||
def available_columns_with_hidden
|
def available_columns_with_hidden
|
||||||
unless @available_columns
|
unless @available_columns
|
||||||
@available_columns = available_columns_without_hidden
|
@available_columns = available_columns_without_hidden
|
||||||
|
@available_columns << QueryColumn.new(:qbo_customer, :sortable => "#{QboCustomer.table_name}.name", :groupable => true, :caption => :field_qbo_customer)
|
||||||
@available_columns << QueryColumn.new(:qbo_customer, :sortable => "#{QboCustomer.table_name}.name", :groupable => true, :caption => :field_qbo_customer)
|
end
|
||||||
end
|
@available_columns
|
||||||
@available_columns
|
end
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Add module to Issue
|
# Add module to Issue
|
||||||
|
|||||||
Reference in New Issue
Block a user