xardion

Activity Graph

Page 1 of 1

2016-06-06

[19:24:41] xardion: Quit: peace out.

2016-06-05

[22:10:30] xardion: has joined #RubyOnRails

2016-06-01

[04:51:21] xardion: Ping timeout: 240 seconds

2016-05-31

[15:01:44] xardion: has joined #RubyOnRails

2016-05-29

[15:18:35] xardion: has joined #RubyOnRails
[15:22:42] xardion: Ping timeout: 246 seconds

2016-05-25

[15:09:51] xardion: Ping timeout: 276 seconds

2016-05-13

[01:17:01] xardion: Ping timeout: 244 seconds
[01:17:39] xardion: has joined #RubyOnRails

2016-05-12

[14:23:15] xardion: Ping timeout: 276 seconds
[14:23:32] xardion: has joined #RubyOnRails

2016-05-11

[07:14:22] xardion: has joined #RubyOnRails

2016-05-04

[12:05:29] xardion: Ping timeout: 276 seconds

2016-05-03

[18:19:07] xardion: Ping timeout: 252 seconds
[18:19:15] xardion: has joined #RubyOnRails

2016-04-27

[05:43:37] xardion: Ping timeout: 260 seconds
[05:50:47] xardion: has joined #RubyOnRails

2016-04-13

[16:28:30] xardion: has joined #RubyOnRails

2016-04-06

[13:52:21] xardion: Ping timeout: 246 seconds
[14:12:39] xardion: has joined #RubyOnRails
[17:45:40] xardion: Ping timeout: 244 seconds

2016-03-31

[04:41:37] xardion: has joined #RubyOnRails

2016-03-30

[05:15:40] xardion: has joined #RubyOnRails
[10:53:51] xardion: Ping timeout: 246 seconds

2016-03-23

[13:09:39] xardion: Ping timeout: 246 seconds

2016-03-18

[04:52:44] xardion: Quit: peace out.
[04:52:59] xardion: has joined #RubyOnRails

2016-03-11

[06:30:35] xardion: has joined #RubyOnRails

2016-03-08

[10:25:34] xardion: Ping timeout: 240 seconds

2016-03-04

[03:22:42] xardion: has joined #RubyOnRails

2016-02-29

[07:31:02] xardion: Ping timeout: 260 seconds

2016-02-27

[21:36:39] xardion: has joined #RubyOnRails
[23:25:07] xardion: Quit: peace out.
[23:25:08] xardion: has joined #RubyOnRails

2016-02-25

[19:08:03] xardion: Ping timeout: 250 seconds

2016-02-19

[01:49:34] xardion: Ping timeout: 250 seconds
[01:50:30] xardion: has joined #RubyOnRails

2016-02-18

[04:31:04] xardion: Ping timeout: 264 seconds
[04:33:10] xardion: has joined #RubyOnRails

2016-02-15

[05:33:41] xardion: has joined #RubyOnRails

2016-02-14

[09:09:35] xardion: Ping timeout: 240 seconds

2016-02-13

[14:28:18] xardion: Ping timeout: 272 seconds
[14:29:23] xardion: has joined #RubyOnRails

2016-02-12

[21:28:38] xardion: Ping timeout: 272 seconds
[21:29:01] xardion: has joined #RubyOnRails

2016-02-08

[05:36:32] xardion: has joined #RubyOnRails

2016-02-07

[03:32:36] xardion: has joined #RubyOnRails
[05:54:15] xardion: Ping timeout: 245 seconds

2016-02-06

[21:20:55] xardion: Ping timeout: 240 seconds

2016-02-05

[00:59:54] xardion: Ping timeout: 250 seconds
[01:00:09] xardion: has joined #RubyOnRails

2016-02-02

[18:40:05] xardion: Ping timeout: 245 seconds
[18:41:01] xardion: has joined #RubyOnRails

2016-01-30

[15:04:50] xardion: Ping timeout: 260 seconds
[23:09:48] xardion: has joined #RubyOnRails

2016-01-29

[00:27:55] xardion: Ping timeout: 240 seconds
[00:28:04] xardion: has joined #RubyOnRails

2016-01-24

[19:11:13] xardion: has joined #RubyOnRails

2016-01-21

[03:10:56] xardion: Ping timeout: 250 seconds

2016-01-20

[18:14:29] xardion: has joined #RubyOnRails
[22:56:26] xardion: Ping timeout: 240 seconds
[23:40:32] xardion: has joined #RubyOnRails

2016-01-19

[21:44:35] xardion: Ping timeout: 264 seconds

2016-01-16

[00:25:21] xardion: Ping timeout: 255 seconds
[00:25:32] xardion: has joined #RubyOnRails

2016-01-15

[15:18:29] xardion: has joined #RubyOnRails

2016-01-14

[02:56:49] xardion: Ping timeout: 245 seconds

2016-01-12

[01:42:32] xardion: has joined #RubyOnRails

2016-01-09

[18:20:07] xardion: Ping timeout: 260 seconds

2016-01-08

[00:44:42] xardion: has joined #RubyOnRails

2016-01-07

[05:01:59] xardion: Ping timeout: 264 seconds

2016-01-05

[16:43:11] xardion: Ping timeout: 255 seconds
[16:43:28] xardion: has joined #RubyOnRails

2016-01-04

[06:23:33] xardion: Ping timeout: 255 seconds
[18:29:19] xardion: has joined #RubyOnRails

2016-01-02

[15:58:40] xardion: has joined #RubyOnRails

2015-12-30

[00:14:22] xardion: Ping timeout: 256 seconds

2015-12-22

[00:24:27] xardion: Ping timeout: 255 seconds
[00:25:18] xardion: has joined #RubyOnRails

2015-12-21

[15:40:17] xardion: has joined #RubyOnRails

2015-12-17

[20:07:03] xardion: Ping timeout: 255 seconds

2015-12-15

[18:02:46] xardion: Ping timeout: 260 seconds
[19:46:10] xardion: has joined #RubyOnRails

2015-12-06

[19:28:54] xardion: Ping timeout: 245 seconds
[19:31:20] xardion: has joined #RubyOnRails
[22:42:35] xardion: Ping timeout: 246 seconds
[22:49:24] xardion: has joined #RubyOnRails

2015-12-04

[07:10:17] xardion: Quit: peace out.
[07:12:38] xardion: has joined #RubyOnRails

2015-12-02

[15:36:21] xardion: *.net *.split
[16:28:44] xardion: has joined #RubyOnRails

2015-11-29

[08:12:13] xardion: Ping timeout: 264 seconds
[08:12:59] xardion: has joined #RubyOnRails
[21:46:43] xardion: Ping timeout: 241 seconds
[22:44:18] xardion: has joined #RubyOnRails

2015-11-27

[08:29:13] xardion: *.net *.split
[10:25:10] xardion: has joined #RubyOnRails

2015-11-26

[19:01:51] xardion: *.net *.split
[19:02:38] xardion: has joined #RubyOnRails

2015-11-23

[13:59:45] xardion: has joined #RubyOnRails

2015-11-21

[20:55:53] xardion: Ping timeout: 276 seconds

2015-11-18

[12:58:14] xardion: Ping timeout: 276 seconds
[22:25:51] xardion: has joined #RubyOnRails

2015-11-17

[18:53:30] xardion: has joined #RubyOnRails

2015-11-16

[10:57:50] xardion: Ping timeout: 276 seconds

2015-11-13

[05:33:43] xardion: has joined #RubyOnRails

2015-11-12

[06:20:23] xardion: has joined #RubyOnRails
[20:21:05] xardion: Ping timeout: 276 seconds

2015-11-11

[03:40:21] xardion: has joined #RubyOnRails
[14:08:15] xardion: *.net *.split

2015-11-08

[05:27:02] xardion: Ping timeout: 276 seconds

2015-11-05

[03:34:20] xardion: Ping timeout: 272 seconds
[09:02:32] xardion: has joined #RubyOnRails
[22:47:52] xardion: So, making a rails engine that is also usable as a gem in a non-Rails app is actually pretty easy
[22:50:51] xardion: there's really only two things you need to do: move the dependency on rails in the gemspec to be a development dependency, then in the main lib/<your engine name>.rb, wrap the "require '<your engine name>/engine.rb'" in an "if defined?(Rails)"
[22:51:33] xardion: in the "else" you have it require whatever files you want available for non-rails apps using the gem, like the models
[22:52:17] xardion: in that case, you'd also want to add activerecord as an explicit dependency in the gemspec
[22:54:18] xardion: you could conceivably add some elsif's with conditions to check for other frameworks (e.g. Sinatra)

2015-11-04

[17:45:52] xardion: has joined #RubyOnRails
[17:46:37] xardion: Looking for a good guide on creating a ruby gem that contains activerecord models and migrations that can be used with or without Rails
[17:49:53] xardion: pontiki: heheh
[18:06:35] xardion: tubbo: in my specific case, the non-Rails app doesn't need to run the migrations. But, the general idea would be to put in a task to run the migrations in a non-Rails app
[18:09:07] xardion: tubbo: right, like I said, I'm not that concerned about that aspect. What I want to know is what the current best practices are for putting AR models and migrations in a gem without making that gem Rails specific.
[18:09:30] xardion: I've googled this pretty extensively, and most of what I've found is pretty out-dated
[18:18:17] xardion: I think what I may end up doing is implementing this as a rails engine, and put in a code path for a non-rails app to just load the models.
[18:18:44] xardion: since that's what my actual use case is.

2012-10-22

[19:27:14] xardion: I have a project that has been migrated from rails 3.0.9 to rails 3.2.8, and I have association extensions that use @owner, which appears to have been deprecated. What has replaced it?
[19:28:34] xardion: yeah, it used to contain the 'owner' of the association.
[19:30:09] xardion: oh, looks like it might just be owner now
[19:37:40] xardion: hmmmm not as simple as removing the @.
[19:42:29] xardion: so it looks like somewhere after rails 3.0.9, it was changed that 'self' in an association extension was no longer the AssociationProxy, but the ActiveRecord::Relation directly. How do I get access then to the ActiveRecord::Association?
[19:48:30] xardion: ahhhh there we go, proxy_association.owner