Sha256: dfc28ec01f7db324495ab6ef800aad356fd7653a9def85a8fbaecbff3ea4f79e

Contents?: true

Size: 102 Bytes

Versions: 8

Compression:

Stored size: 102 Bytes

Contents

Spree::State.class_eval do
  scope :find_country, -> (id) { includes(:country).find(id).country }
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
solidus_json_api-0.3.1 app/models/spree/state_decorator.rb
solidus_json_api-0.3.0 app/models/spree/state_decorator.rb
spree_api_v2-0.2.2 app/models/spree/state_decorator.rb
solidus_api_v2-0.2.2 app/models/spree/state_decorator.rb
solidus_api_v2-0.2.1 app/models/spree/state_decorator.rb
spree_api_v2-0.2.1 app/models/spree/state_decorator.rb
spree_api_v2-0.2.0 app/models/spree/state_decorator.rb
solidus_api_v2-0.2.0 app/models/spree/state_decorator.rb