Page 1 of 14 | Next »
[15:46:27] Inside: sounds like what you want is an internal webpage someone can go to, then click a button?
[18:42:38] Inside: Ugh.. how do I get rails to eager_load all the classes in a directory in production. I have a folder app/roles and inside I've got a number of classes ie: (Role::Admin) which are derived from Role::Base. I'd like to be able to have a "RoleManager" class where I could call "RoleManager.all_roles" and get all the available roles
[18:44:33] Inside: Although, I suppose, I could mess around with the base initialize() function for it to auto register itself.. seems dirty thoug
[01:01:51] Inside: This will be like, a major class in the entire application so it's important to get the name right
[01:05:25] Inside: "identity" is just what the person will use to login as - either their email... or in the case of temp employees, a PIN
[01:06:16] Inside: the application validates corporate credentials against active directory, if provided, or the database if a PIN is provided
[01:07:05] Inside: IT tells me that they can't create AD accounts for everyone since it costs money??
[21:41:43] Inside: man this is amazing. I copied a config file from my main project to my proof of concept project.. got LDAP authorization working in the POC, then can't replicate the results in the main project /even though the files are the same/
[21:47:22] Inside: I haven't tried this yet, but you oculd put 'byebug' in application.rb before 'rails/all' and then set the breakpoint in the file?
[22:38:02] Inside: that rails is wonderful so long as you stay in the tiny little box it made for ou
[21:48:38] Inside: Do you 1) Create a base model and then subclass it into BaseModelAdmin and BaseModelUser and then create BaseModelAdminController, BaseModelUserController with varying permitted params?
[17:57:09] Inside: and then write a custom validator that either parses it to json and stores it in your model's attribute that's linked to acolumn or throws a validation error
[16:54:23] Inside: So this is a pretty smelly piece of code. I just don't know to how refactor it or test it.
[16:54:56] Inside: Basically I'm trying to guard against Component's validations changing in the future
[18:14:51] Inside: https://guides.rubyonrails.org/active_record_querying.html#eager-loading-associations
[18:16:02] Inside: .includes(..) is a hint to preload all of the records associated with the main model(s) instead of loading the associations one by one
[22:07:07] Inside: So.... this is a pretty complicated problem, but I've create a User & UserIdentity model and am using devise with two strategies to peform authentication: LDapAuthenticatable and also my own home-rolled BadgeAuthenticatable. I can enable one strategy to work at a time, but not both =_=
[22:07:49] Inside: Basically - If I have badge authentication enabled, i can use a PIN code to login, but then I can't use the LDAP Authentication since it either won't stay logged in or won't allow logging out
[16:34:31] Inside: I'm trying to have a base "User" model which can have multiple "Identities" - where identities are either their active directory login or a token
[17:44:23] Inside: specifically the issue that I'm having is that I've defined the strategy, but I can't seem to get it to load
[18:14:47] Inside: FYI: if you're making code changes and they're not evident when you refresh/restart... 1) spring stop 2) remove spring & listen gems
[00:13:18] Inside: Heyo~ cross posting from the #RoR channel, but I am having issues with bundle bumping from one revision of rails to another: https://gist.github.com/Insood/d0a9df88f8ce2e0e1eee1fe8e70f2c46
[00:13:42] Inside: Like the first conflict makes no sense since it looks like actionpack & simple_form should be satisfied..
[00:24:58] Inside: Turns out nuking a single gem from the gemfile that I didn't need anyway fixed everything D
[17:40:41] Inside: if the interaction & the process occur within the same application, you would use threads..
[07:04:38] Inside: The MUD uses non directional exits between rooms sometimes and well.. is essentially a non-eucladian space
[07:04:55] Inside: so I want to have something that intercepts the inputs/outputs and then graphs the MUD as I move around it
[07:05:47] Inside: I'd hate to do something like ... a run rails server and use a js nodegraph library