Sha256: 59ab19224eaa503c03c8a8ccf2ef0fce1a71462b60e89231a23364b0eb690649
Contents?: true
Size: 195 Bytes
Versions: 3
Compression:
Stored size: 195 Bytes
Contents
module Stachio def self.readonly return Stachio::Engine.config.readonly if defined?(Stachio::Engine.config.readonly) (defined?(Rails) && Rails.env.production?) ? true : false end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stachio-0.2.1 | lib/stachio/readonly.rb |
stachio-0.2.0 | lib/stachio/readonly.rb |
stachio-0.1.0 | lib/stachio/readonly.rb |