example/students_1/students.rb in lorj-1.0.3 vs example/students_1/students.rb in lorj-1.0.4
- old
+ new
@@ -13,16 +13,15 @@
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-if ENV['BYEBUG']
- require 'byebug'
- lib_path = File.expand_path(File.join(app_path, '..', '..', 'lib'))
- $LOAD_PATH << lib_path
-end
-
app_path = File.dirname(__FILE__)
+
+lib_path = File.expand_path(File.join(app_path, '..', '..', 'lib'))
+$LOAD_PATH << lib_path
+
+require 'byebug' if ENV['BYEBUG']
require 'lorj'
# If you want to see what is happening in the framework, uncomment debug
# settings.