Module: SocialFramework

Extended by:
ActiveSupport::Concern
Included in:
Users::SessionsController
Defined in:
lib/social_framework.rb,
lib/social_framework/engine.rb,
lib/social_framework/version.rb,
app/models/social_framework/edge.rb,
app/models/social_framework/user.rb,
app/models/social_framework/event.rb,
app/models/social_framework/route.rb,
app/models/social_framework/location.rb,
app/models/social_framework/schedule.rb,
app/helpers/social_framework/route_helper.rb,
app/helpers/social_framework/network_helper.rb,
app/helpers/social_framework/schedule_helper.rb,
app/models/social_framework/participant_event.rb,
app/helpers/social_framework/application_helper.rb,
lib/generators/social_framework/views_generator.rb,
lib/generators/social_framework/install_generator.rb,
app/controllers/social_framework/application_controller.rb,
lib/generators/social_framework/install_migrations_generator.rb

Overview

SocialFramework module, connect all elements and use it in correct sequence

Defined Under Namespace

Modules: ApplicationHelper, Generators, NetworkHelper, RouteHelper, ScheduleHelper Classes: ApplicationController, Edge, Engine, Event, Location, ParticipantEvent, Route, Schedule, User

Constant Summary collapse

VERSION =
"1.0.1"
@@depth_to_build =
3
@@attributes_to_build_graph =
[:username, :email, :title]
@@elements_number_to_search =
5
@@relationship_type_to_suggest =
"friend"
@@amount_relationship_to_suggest =
5
@@relationship_type_to_invite =
"all"
@@event_permissions =
{ creator: [:remove_event, :remove_admin, :remove_inviter, :remove_participant,
            :invite, :make_admin, :make_inviter, :make_creator,
            :add_route, :remove_route],
  admin: [:remove_inviter, :remove_admin, :remove_participant,
          :invite, :make_admin, :make_inviter,
          :add_route, :remove_route],
  inviter: [:remove_participant, :invite],
  participant: []
}
@@slots_size =
1.hour
@@max_duration_to_schedule_graph =
1.month
@@max_weight_schedule =
10
@@user_class =
'SocialFramework::User'
@@schedule_class =
'SocialFramework::Schedule'
@@event_class =
'SocialFramework::Event'
@@route_class =
'SocialFramework::Route'
@@edge_class =
'SocialFramework::Edge'
@@location_class =
'SocialFramework::Location'
@@participant_event_class =
'SocialFramework::ParticipantEvent'
@@google_key =
' AIzaSyBcMn7Awv_OKT3LWvAHtkwERPNSwkNBqpM '

Class Method Summary collapse

Class Method Details

.setup {|_self| ... } ⇒ Object

Used to change variables in configuration Retuns a block to self

Yields:

  • (_self)

Yield Parameters:



103
104
105
# File 'lib/social_framework.rb', line 103

def self.setup
  yield self
end