This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if defined?(ActiveRecord::Base) && defined?(Authlogic) | |
controller = ApplicationController.new | |
require 'action_controller/test_case' | |
controller.instance_variable_set(:@_request, ActionController::TestRequest.new) | |
controller.instance_variable_set(:@_response, ActionController::TestResponse.new) | |
Authlogic::Session::Base.controller = Authlogic::ControllerAdapters::RailsAdapter.new(controller) | |
end | |
UserSession.new( User.first ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class [Your Class Here] < ActiveRecord::Base | |
################################################################################################## | |
### Attributes ################################################################################### | |
################################################################################################## | |
### Constants #################################################################################### | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ | |
"keys": ["shift+space"], | |
"command": "exit_insert_mode", | |
"context": [ | |
{ "key": "setting.command_mode", "operand": false }, | |
{ "key": "setting.is_widget", "operand": false } | |
] | |
} | |
] |
OlderNewer