Comments (2)
screen_api is used here and in the frontend in core concerto - it is required when you want a view to be accessible using Screen authorization (a private token as specified). Without it, CanCan ability checks and current_accessor checks will return nil if no user is logged in, regardless of whether a screen is logged in. With it, these use the current screen if one is logged in, and the current user otherwise (or nil if neither). I can't think off the top of my head of any other plugins that would need to use it, it's really just for actions that provide an endpoint for screens to talk (here it's because Bandshell logs in to Concerto as a "Screen" to access it's Player properties. In Frontend::ScreensController, it's to allow authenticated browsers to access the screen frontend).
I'll leave this open for now, I'm not quite sure whether the require_dependency is doing something useful or is some old leftover.
from concerto-hardware.
Closing this out because it seems require_dependency
is not needed if we specify ConcertoHardware::ApplicationController as the parent class. Another option might be to autoload it in the module, but this way is nice and explicit (conversely, less magical).
I tested the latest commit (88bf84e) in production and in development, including when a reload occurs in development, and it looks good. Any problems can be a new ticket.
from concerto-hardware.
Related Issues (20)
- why is view stuff in engine.rb? HOT 1
- explain "force off" usage please HOT 4
- List all players in Concerto HOT 3
- how is the screen turned on or off? HOT 1
- remove new player button from all players list? HOT 1
- screen on/off validation and interface
- screen off - does that mean browser is stopped? HOT 1
- Implement Screen Control Selection
- expose player IP addresses HOT 1
- are non-logged in users supposed to be able to add players? HOT 1
- Resolution and Rotation Control
- Rails 4: Player Model Time Attributes broken
- Capture Player IP Address HOT 2
- Can't change weekend off time from 8PM HOT 5
- Hardware controlled screen flickers (DPMS)
- Add ability to disable screen on/off schedules HOT 2
- upgrade to turbolinks v5
- deleting a screen used by a player causes problems
- Implement Screen on/off time interface
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from concerto-hardware.