Skip to content
This repository was archived by the owner on Apr 25, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/straight/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def self.included(base)
tid
title
}.each do |field|
attr_reader field unless base.method_defined?(field)
attr_writer field unless base.method_defined?("#{field}=")
attr_reader field unless base.method_defined?(field) || (base.respond_to?(:attribute_method?) && base.attribute_method?(field))
attr_writer field unless base.method_defined?("#{field}=") || (base.respond_to?(:attribute_method?) && base.attribute_method?("#{field}="))
end
prepend Prependable
include Includable
Expand Down