sorry i'm away tomorrow. Can you do Friday, anytime?


On Wed, Feb 12, 2014 at 1:24 PM, James Kiesel <notifications@github.com>wrote:

> In config/initializers/translatable.rb:
>
> > +
> > +        current_translations.as_json.reduce({}, :merge)
> > +      end
> > +
> > +      protected
> > +
> > +      def clear_translations
> > +        self.translations.each do |translation|
> > +          translation.destroy if self.send("#{translation.translatable_field}_changed?")
> > +        end
> > +      end
> > +
> > +      private
> > +
> > +      def translator
> > +        app_id = ENV.fetch('BING_TRANSLATE_APPID', nil)
>
> Yeah, certainly, but should be tomorrow, I can come in in the morning?
> … <#144237ac582937f4_>
> On Wednesday, February 12, 2014, Robert Guthrie <notifications@github.com>
> wrote: > In config/initializers/translatable.rb: > > > + > > +
> current_translations.as_json.reduce({}, :merge) > > + end > > + > > +
> protected > > + > > + def clear_translations > > + self.translations.each
> do |translation| > > + translation.destroy if
> self.send("#{translation.translatable_field}_changed?") > > + end > > + end
> > > + > > + private > > + > > + def translator > > + app_id =
> ENV.fetch('BING_TRANSLATE_APPID', nil) > > Hi James, There is a bit I'd
> like to change on this. Was wondering if you > could come in? I can't type
> much due to a cast on my arm. Would that be ok? > ... <#1442359d9a53b006_>
> > On Wed, Feb 12, 2014 at 11:30 AM, James Kiesel <notifications@github.com
> <javascript:_e(%7B%7D,'cvml','notifications@github.com');>>wrote: In
> config/initializers/translatable.rb: > + > +
> current_translations.as_json.reduce({}, :merge) > + end > + > + protected >
> + > + def clear_translations > + self.translations.each do |translation| >
> + translation.destroy if
> self.send("#{translation.translatable_field}_changed?") > + end > + end > +
> > + private > + > + def translator > + app_id =
> ENV.fetch('BING_TRANSLATE_APPID', nil) I think @s01us<https://github.com/s01us>
> <https://github.com/s01us>< https://github.com/s01us> was working on a
> global-type helper method for this fetch problem? [Maybe shooting off a
> warning when an expected ENV is nil?] -- Reply to this email directly or
> view it on GitHub<
> https://github.com/loomio/loomio/pull/1281/files#r9646864> . -- Reply to
> this email directly or view it on GitHub<
> https://github.com/loomio/loomio/pull/1281/files#r9649668> .
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/loomio/loomio/pull/1281/files#r9650736>
> .
>