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 110 matches similar to: "Overriding class_attribute writers and order of super/extend C.M./included block eval in ActiveSupport::Concern"

2011 May 28
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
`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 config.gem: Unpacked gem rack-rewrite-1.2.1 in vendor/gems has
2012 Feb 16
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
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
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
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
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, //
2012 Sep 20
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
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
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 > > >
2018 Jul 09
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
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> 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
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
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.
1998 Aug 21
Named Overlow Concern
I am running Linux 2.0.30 (Redhat 4.2) and have recently been hacked. I have tightened up security but still feel vulnerable. In running the program mscan which was kindly left on my system I get this. VULN: linux box vulnerable to named overflow. VULN: redhat linux box running imapd. This is after upgrading to the versions as below. bind-4_9_7-0
1997 Sep 18
[MOD] About "Security concern"
[Mod: Warning - we are hitting issues of security policy and that is not what we would like to see here --alex] Brian Koref said: > > Great input... > > As an investigator, many of the compromises I see involve systems > which are 2 to 3 years old. An old slackware box sitting on a .mil > domain, which some airman set up as a test machine. The airman gets > trasferred, and
1997 Sep 22
Re: Re: Security Concern..
That one doesn''t work either, but here is a link to their FTP archive where the program resides: Hope this helps. -Rick -----Original Message----- From: Pluto <> To: <> Date: Monday, September 22, 1997 3:50 AM Subject: [linux-security] Re:
2013 Jun 25
Casting gem usage in Rails 4/Ruby 2 vs. Rails 4 push for concern usage/Rails delegation
Just read about the Casting gem: What are the Rails core team''s opinions about using Casting vs. ActiveSupport::Concern usage, Rails delegation, etc.? -- You received this message because you are subscribed to the Google
2011 May 31
How do you test a module that extends ActiveSupport::Concern?
I have a module that extends ActiveSupport::Concern. Here is the `included` block: included do after_save :save_tags has_many :taggings, :as => :taggable has_many :tags, :through => :taggings end How can I stub out these calls? I have tried a few ways, but Ruby complains that these methods don''t exist when I try and test the module in isolation. Thanks!
2009 Oct 08
zfs send/receive performance concern
I am running zfs send/receive on a ~1.2Tb zfs spread across 10x200Gb LUNs. Has copied only 650Gb in ~42Hrs. Source pool and destination pool are from the same storage sub system. Last time when ran, took ~20Hrs. Something is terribly wrong here. What do i need to look to figure out the reason? ran zpool iostat and iostat on the given pool for some clue. but still in a state of confusion