Skip to content

Instantly share code, notes, and snippets.

@MagmaRules
Created July 25, 2013 11:41
Show Gist options
  • Save MagmaRules/6078928 to your computer and use it in GitHub Desktop.
Save MagmaRules/6078928 to your computer and use it in GitHub Desktop.
Changes for redmine using Oracle DB
- <p><%= f.text_field :start_date, :size => 10, :disabled => [email protected]?, :required => @issue.required_attribute?('start_date') %><%= calendar_for('issue_start_date') if @issue.leaf? %></p>
+ <p><%= f.text_field :start_date, :size => 10, :disabled => [email protected]?, :required => @issue.required_attribute?('start_date'), :value => @issue.start_date ? @issue.start_date.strftime(Setting.date_format) : "" %><%= calendar_for('issue_start_date') if @issue.leaf? %></p>
ActiveSupport.on_load(:active_record) do
ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter.class_eval do
self.emulate_dates_by_column_name = true
end
end
def has_column?(column)
+ return false if !column_names.kind_of?(Array)
column_names && column_names.include?(column.is_a?(QueryColumn) ? column.name : column)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment