similar to: Overriding class_attribute writers and order of super/extend C.M./included block eval in ActiveSupport::Concern

Displaying 20 results from an estimated 140 matches similar to: "Overriding class_attribute writers and order of super/extend C.M./included block eval in ActiveSupport::Concern"

2011 May 28
0
class_inheritable_accessor => class_attribute
I had code class_inheritable_accessor :attrs, :instance_reader => false, :instance_writer => false self.attrs = {} now i want to get rid of class_inheritable_accessor, but class_attribute only supports instance_writer, not instance_reader options and i really don''t want instance reader. Is there any way to do it? -- You received this message because you are subscribed to the
2012 Oct 16
5
`method_missing_without_paginate': undefined method `class_attribute' for ActiveRecord::Base:Class
hi i am using radiant 0.8.2 , rails 2.3.4, ruby 1.8.7 and rubygems 1.4.2. and i can''t able to run my existing application. error occurred : run command for server "script/server -e production -p 3001" error: => Booting WEBrick => Rails 2.3.4 application starting on http://0.0.0.0:3001 config.gem: Unpacked gem rack-rewrite-1.2.1 in vendor/gems has no specification
2012 Feb 16
1
How to disable instrumentation in rails 3?
There is a bug in jruby that causes thread locks around things like accesses to class attributes created with class_attribute. The notifications system is affected by this, and it''s blowing up our app. We need to disable all instrumentation and notifications for the time being. Anyone know how to do that cleanly? CHris -- You received this message because you are subscribed to the
2012 Sep 08
4
dash symbol
In the example below, what is the dash doing between the class attribute and array: (field_helpers - [:label, :check_box, :radio_button, :fields_for, :hidden_field, :file_field]).each do |selector| -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2011 Jul 14
0
subclasses with inherited_resources?
I''m trying out inherited_resources and so far so good. However, one problem I''ve run into is that it''s very difficult to customize inherited_resource behaviour in subclasses. Looking through the source I see it uses things like undef_method and class_attribute. For example, if I have the following controllers: class ItemsController inherit_resources actions :new,
2012 Oct 03
1
Is there planned support for permitting params one at a time vs. all at once in strong_parameters/Rails 4?
Was going to have a variety of request params sent in and use a class_attribute that would define types of request parameters that are allowed. strong_parameters wouldn''t be too much trouble in such a case if it would allow me to manually permit some attributes (dynamically determined) in the controller but allow strong_parameters to enforce security of others. Is this something
2011 Jul 22
0
Asset Pipeline and Sprockets
Ok I would love to work out how to use the new Raisl 3.1 Asset Pipeline with SCSS variables, mixins etc and being able to use the asset_path tag. What I have so far is this. Im my application.css.scss I have the following. *= require_self *= require layout *= require home This works fine with using the asset_path helper and variable within layout ie, // layout.css.scss.erb
2012 Sep 20
2
append_features(mod)
append_features(mod) The documentation says: When this module is included in another, Ruby calls append_features in this module, passing it the receiving module in mod. Ruby’s default implementation is to add the constants, methods, and module variables of this module to mod if this module has not already been added to mod or one of its ancestors. See also Module#include. What if this module is
2017 May 21
0
Xapian 1.4.3 "Db block overwritten - are there multiple writers?"
On Wed, May 17, 2017 at 09:08:32PM +0200, Jean-Francois Dockes wrote: > I have a user reporting the following error during recoll indexing: > > flush() failed: Db block overwritten - are there multiple writers? > > "flush() failed" is from recoll, the rest is, I think the text of the Xapian > exception. > > This is with Xapian 1.4.3 on Linux (I asked for
2018 Mar 05
0
Xapian 1.4.5 "Db block overwritten - are there multiple writers?" with Glass
On Mon, Mar 05, 2018 at 08:52:47PM +0100, Sylvain Taverne wrote: > I've remarked the error occur when i'm trying to get stored values from a > database with a lot of stored values. I can reproduce the error with simple > python2 script i've posted on github > > https://github.com/staverne/xapian_test >
2018 Jul 09
0
Xapian 1.4.5 "Db block overwritten - are there multiple writers?" with Glass
On Wed, Mar 07, 2018 at 08:16:23PM +0000, Olly Betts wrote: > Just to update the status of this - I now have a C++ reproducer, and > have found that the transaction isn't needed to reproduce this. It > also still reproduces when run under eatmydata [1], and together these > bring the time to reproduce down to 4-5 minutes. Still longer than > ideal, but quick enough to start
2018 Jul 10
0
Xapian 1.4.5 "Db block overwritten - are there multiple writers?" with Glass
Thank's !! I'll try during the week, and will let you know if all is fine ;) Le mar. 10 juil. 2018 à 07:36, Olly Betts <olly at survex.com> a écrit : > On Mon, Jul 09, 2018 at 10:29:18AM +0100, Olly Betts wrote: > > The attached patch reset this cursor each time commit() is called, and > > that fixes my C++ reproducer, though I think this ought to work as-is >
2001 Dec 12
1
Nero under Wine.. no writers show up
hi, i have problems getting nero recognize my atapi cd-writer under wine.. when i start nero, there's one message that repeats all the time: err:aspi:ASPI_GetHCforController Could not open HKEY_DYN_DATA\WineScsi\ControllerMap\c00, error=2 i think that is the cause, why my cd-writer isn't recognized by nero, but what can i do about that? or what does this message tell me? ;) thx in
2011 Aug 04
4
Mono to use for Writers Blocks 4?
Writers Blocks has issued a new version. Version 3 ran with winetricks v6run and mfc40 But it appears that Version 4 needs something else. I tried it with the above, I tried it with all the mono versions, but installed mono after I installed the program. wine: Install Mono for Windows to run .NET 2.0 applications. And ideas? There is a free trial version on the web site.
2008 Jan 28
0
Notes for writers of graphics devices
Partly about new features and partly about old features that are not being used. R_exts/GraphicsEngine.h says /* * The current graphics engine (including graphics device) API version * MUST be integer * * This number should be bumped whenever there are changes to * GraphicsEngine.h or GraphicsDevice.h so that add-on packages * that compile against these headers (graphics systems
2018 Mar 05
2
Xapian 1.4.5 "Db block overwritten - are there multiple writers?" with Glass
Hello, Since the migration to xapian 1.4.X and the migration to Glass, i've recurrent database corruption errors. I've to reindex my database to make it works again. > DatabaseCorruptError: Expected block 200713 to be level 2, not 1 Theses problems always occur after this error: > xapian.DatabaseCorruptError: Db block overwritten - are there multiple writers? I've
2017 May 24
0
Xapian 1.4.3 "Db block overwritten - are there multiple writers?"
On Mon, May 22, 2017 at 07:45:59AM +0200, Jean-Francois Dockes wrote: > Olly Betts writes: > > Assuming nobody deleted the log file, this could be a Xapian bug. This I meant "lock file" not "log file" here. > > isn't something we're drowning in reports of, so presumably it doesn't > > trigger easily, so finding a way to reproduce would be
2005 Mar 08
2
I would like to create a Samba share supporting named writers, named readers, and no guests ...
I have not hit on the correct combination of parameters. Closest I come still allows the readers to modify - but not create - files. Not what I want. If someone can give me a hint, I would really appreciate it. Thank you. If I do this, reader1 can see the files (good), cannot create files (good), but can modify (write) existing files (bad!) ------- smb.conf ------- [native6-stuff] path =
2010 Jun 11
2
AR after_initialize quandry
I have a case where I am abstracting the creation of models. After a fair bit of indirection, I eventually get around to making a .new call. I need to be able to pass params to that .new call. I know I can''t use def initialize() in an AR model (rather frustrating). So, I have found some references to after_initialize, but that doesn''t work either. I see several threads on
2009 Mar 16
0
[LLVMdev] MachO and ELF Writers/MachineCodeEmittersarehard-codedinto LLVMTargetMachine
Aaron, I mailed in the same mail twice (by mistake), you answered both copies. Differently! In any case, I've re-read what exists. I'm dumping what I understand here, so that we can discuss in detail. I'm using MachO as the example object format, as the ELF code is totally broken and outdated. Lets use the following as the basis for our discussion? There are 3 classes which