Comments (2)
no, currently its not included, but its easy to do.
all you need to do is to attach the current_store to the api object.
you can override every function of the spree_core or this gem with
class_eval.
example:
lets say the spree-core has a method foo you need to override
class ApiController
def foo
end
end
so you go under
app/controllers/api_controller_decorator.rb
Spree::ApiController.class_eavl do
#you reopen the class and can override anything or add new stuff
before_filter do
#do some needed stuff
end
def foo
#override foo with your stuff
end
def yourfoo
#implement addition functions
end
end
its simple, just give it a try
cheers
Am 11.04.2014 22:06, schrieb Gonzalo Moreno:
I'm creating an app via spree_api, and the question, it's api
supported by multi-domain?Regards !
—
Reply to this email directly or view it on GitHub
#92.
from spree-multi-domain.
@fu-media Yes, it works
from spree-multi-domain.
Related Issues (20)
- [Admin::Order) Search/Add variants will list ALL variants
- View Customization for Home Page not working
- Paperclip::Errors::MissingRequiredValidatorError in Spree::Admin::StoresController#update HOT 1
- Could not find generator spree_multi_domain:install HOT 1
- Unable to set store for Spree::StockLocation
- Products not saving array attributes HOT 1
- loading Taxons fails on spree 3.2.1 HOT 3
- Allow setting different payment methods per domain. HOT 1
- Edit Product shows blank stores HOT 1
- Add To Cart Loads An Incorrect Value
- error while "bundle install" on spree HOT 4
- store attribute get lost if we edit the properties HOT 1
- ResourceController (NameError) HOT 3
- undefined method `has_and_belongs_to_many' for Store:Module
- bootsnap uninitialized constant Spree::Tracker (NameError) HOT 9
- Change 'sass-rails' dev dependency to 'sassc-rails'
- Store layouts are not working with rails 6
- Remove dependencies
- `logo_file_name` nil for all stores
- How can i use Spree-multi-domain with Spree 4.1.12? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spree-multi-domain.