class Object

Public Instance Methods

create_session(user = nil) click to toggle source
# File lib/generators/genesis_rails/install/files/spec/support/genesis_rails.rb, line 12
def create_session(user = nil)
  # You'll probably need to do something like this:
  #
  # controller.sign_in(user || FactoryGirl.create(:user))
  #
  # Or if you are using devise:
  #
  # sign_in(user || FactoryGirl.create(:user))
  #
  # If you don't need a user logged in, just leave this method as it is now
end
to_title() click to toggle source
# File lib/generators/genesis_rails/install/files/templates/active_record/model/model.rb, line 16
def to_title
  <
valid_session_hash(user = nil) click to toggle source
# File lib/generators/genesis_rails/install/files/spec/support/genesis_rails.rb, line 24
def valid_session_hash(user = nil)
  # You'll probably need to do something like this:
  #
  # user ||= FactoryGirl.create(:user)
  # {user_id: user.id}
  #
  # If you don't need a user logged in, just leave this method as it is now
  {}
end