Sha256: a55c80d76b539c8aa42f5130479457c21233f1f670deda373099cd2d7c2fc786

Contents?: true

Size: 122 Bytes

Versions: 17

Compression:

Stored size: 122 Bytes

Contents

Order.class_eval do
  def self.find_by_param(param)
    Order.where("id = ? OR number = ?", param, param).first
  end
end

Version data entries

17 entries across 17 versions & 7 rubygems

Version Path
apispree_api-0.0.0 app/models/order_decorator.rb
My-Commerce_api-1.1.0 app/models/order_decorator.rb
My-Commerce_api-1.0.0 app/models/order_decorator.rb
MyCommerceapi-1.0.0 api/app/models/order_decorator.rb
MyCommerce-0.0.3 api/app/models/order_decorator.rb
rfcommerce_api-0.0.3 app/models/order_decorator.rb
spree_api-0.60.6 app/models/order_decorator.rb
spree_api-0.60.5 app/models/order_decorator.rb
spree_api-0.60.4 app/models/order_decorator.rb
spree_api-0.60.3 app/models/order_decorator.rb
spree_api-0.60.2 app/models/order_decorator.rb
spree_api-0.70.RC1 app/models/order_decorator.rb
spree_bushido_api-0.80.28 app/models/order_decorator.rb
spree_bushido_api-0.80.27 app/models/order_decorator.rb
spree_api-0.60.1 app/models/order_decorator.rb
spree_api-0.60.0 app/models/order_decorator.rb
spree_api-0.60.0.RC1 app/models/order_decorator.rb