Coder Social home page Coder Social logo

Comments (5)

ste26054 avatar ste26054 commented on June 28, 2024 1

Same problem here !

Spree 3.1.0
spree_i18n 3-1-stable
spree_globalize master

from spree_globalize.

milep avatar milep commented on June 28, 2024

spree_globalize and spree_i18n both overrides update_i18n_settings method in general_settings_controller

from spree_globalize.

bonekost avatar bonekost commented on June 28, 2024

I don't think so... spree_globalize just added new method for update

 before_filter :update_i18n_settings, only: :update

  private
    def update_i18n_settings
      params.each do |name, value|
        next unless SpreeGlobalize::Config.has_preference? name
        SpreeGlobalize::Config[name] = value.map(&:to_sym)
      end
    end

from spree_globalize.

milep avatar milep commented on June 28, 2024

I mean, they both add method with a same name.

https://github.com/spree-contrib/spree_i18n/blob/master/app/controllers/spree/admin/general_settings_controller_decorator.rb

  before_filter :update_i18n_settings, only: :update

  private

  def update_i18n_settings
    params.each do |name, value|
      next unless SpreeI18n::Config.has_preference? name
      SpreeI18n::Config[name] = value.map(&:to_sym)
    end
  end

from spree_globalize.

bonekost avatar bonekost commented on June 28, 2024

WTF???

from spree_globalize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.